EntityViewBuilder::getCacheTags

public EntityViewBuilder::getCacheTags()

The cache tag associated with this entity view builder.

An entity view builder is instantiated on a per-entity type basis, so the cache tags are also per-entity type.

Return value

array An array of cache tags.

Overrides EntityViewBuilderInterface::getCacheTags

File

core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 328

Class

EntityViewBuilder
Base class for entity view builders.

Namespace

Drupal\Core\Entity

Code

public function getCacheTags() {
  return array($this->entityTypeId . '_view');
}
doc_Drupal
2016-10-29 09:08:45
Comments
Leave a Comment

Please login to continue.