EntityTypeInterface::getListCacheContexts

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[]

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();
doc_Drupal
2016-10-29 09:08:24
Comments
Leave a Comment

Please login to continue.