8.3.x EntityTypeInterface.php public EntityTypeInterface::getListCacheContexts()
8.0.x EntityTypeInterface.php public EntityTypeInterface::getListCacheContexts()
8.1.x EntityTypeInterface.php public EntityTypeInterface::getListCacheContexts()
8.2.x EntityTypeInterface.php public EntityTypeInterface::getListCacheContexts()
8.4.x EntityTypeInterface.php public EntityTypeInterface::getListCacheContexts()

The list cache contexts associated with this entity type.

Enables code listing entities of this type to ensure that rendered listings are varied as necessary, typically to ensure users of role A see other entities listed than users of role B.

Return value

string[]

1 method overrides EntityTypeInterface::getListCacheContexts()
EntityType::getListCacheContexts in core/lib/Drupal/Core/Entity/EntityType.php
The list cache contexts associated with this entity type.

File

core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 701

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getListCacheContexts();