public static function Synonym::cacheTagConstruct in Synonyms 2.0.x
Same name and namespace in other branches
- 8 src/Entity/Synonym.php \Drupal\synonyms\Entity\Synonym::cacheTagConstruct()
Construct a cache tag.
Construct a cache tag that represents this synonyms config, entity type, and bundle.
Parameters
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 modules/
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 201
Class
- Synonym
- Synonym configuration entity.
Namespace
Drupal\synonyms\EntityCode
public static function cacheTagConstruct($entity_type, $bundle) {
return 'synonyms:' . $entity_type . '.' . $bundle;
}