public static function Synonym::cacheTagConstruct in Synonyms 8
Same name and namespace in other branches
- 2.0.x src/Entity/Synonym.php \Drupal\synonyms\Entity\Synonym::cacheTagConstruct()
Construct a cache tag.
Construct a cache tag that represents synonyms config for a given behavior, entity type, and bundle.
Parameters
string $behavior: Synonyms behavior whose cache tag is requested.
string $entity_type: Entity type whose cache tag is requested.
string $bundle: Bundle whose cache tag is requested.
Return value
string Cache tag
3 calls to Synonym::cacheTagConstruct()
- SearchService::entityView in synonyms_search/
src/ SynonymsService/ Behavior/ SearchService.php - Implementation of hook_entity_view().
- Synonym::postLoad in src/
Entity/ Synonym.php - Acts on loaded entities.
- Synonym::preSave in src/
Entity/ Synonym.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Synonym.php, line 221
Class
- Synonym
- Synonym configuration entity.
Namespace
Drupal\synonyms\EntityCode
public static function cacheTagConstruct($behavior, $entity_type, $bundle) {
return 'synonyms:' . $behavior . '.' . $entity_type . '.' . $bundle;
}