W3cubDocs

/Drupal 8

public function EntityType::isRenderCacheable

public EntityType::isRenderCacheable()

Indicates whether the rendered output of entities should be cached.

Return value

bool

Overrides EntityTypeInterface::isRenderCacheable

File

core/lib/Drupal/Core/Entity/EntityType.php, line 350

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function isRenderCacheable() {
  return $this->render_cache;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityType.php/function/EntityType::isRenderCacheable/8.1.x