public function EntityExtraField::getCacheDiscoveryId in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/Entity/EntityExtraField.php \Drupal\entity_extra_field\Entity\EntityExtraField::getCacheDiscoveryId()
Get the cache discovery identifier.
Return value
string The cache identifier in the cache_discovery table.
Overrides EntityExtraFieldInterface::getCacheDiscoveryId
File
- src/
Entity/ EntityExtraField.php, line 226
Class
- EntityExtraField
- Define entity extra field.
Namespace
Drupal\entity_extra_field\EntityCode
public function getCacheDiscoveryId() {
$langcode = $this
->languageManager()
->getCurrentLanguage()
->getId();
return "entity_bundle_extra_fields:{$this->getBaseEntityTypeId()}:{$this->getBaseBundleTypeId()}:{$langcode}";
}