function EntityType::getBundleListCacheTags
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getBundleListCacheTags()
The list cache tags associated with a specific bundle.
Enables code listing entities of this type and bundle to ensure that newly created entities show up immediately.
Return value
string[] An array of the cache tags for this bundle.
Overrides EntityTypeInterface::getBundleListCacheTags
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 904
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getBundleListCacheTags(string $bundle) : array {
return [
$this->id() . '_list:' . $bundle,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.