function AttributeDiscoveryWithAnnotations::getFileCacheSuffix
Same name in other branches
- 11.x core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php \Drupal\Core\Plugin\Discovery\AttributeDiscoveryWithAnnotations::getFileCacheSuffix()
Overrides AttributeClassDiscovery::getFileCacheSuffix
File
-
core/
lib/ Drupal/ Core/ Plugin/ Discovery/ AttributeDiscoveryWithAnnotations.php, line 56
Class
- AttributeDiscoveryWithAnnotations
- Enables both attribute and annotation discovery for plugin definitions.
Namespace
Drupal\Core\Plugin\DiscoveryCode
protected function getFileCacheSuffix(string $default_suffix) : string {
return $default_suffix . ':' . Crypt::hashBase64(serialize($this->additionalNamespaces)) . ':' . str_replace('\\', '_', $this->pluginDefinitionAnnotationName);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.