function EntityTypeInterface::getListCacheContexts
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getListCacheContexts()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getListCacheContexts()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\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 711
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getListCacheContexts();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.