function 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 892
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.