function EntityOperations::entityTranslationInsert
Implements hook_entity_translation_insert().
Attributes
#[Hook('entity_translation_insert')]
File
-
core/
modules/ workspaces/ src/ Hook/ EntityOperations.php, line 102
Class
- EntityOperations
- Defines a class for reacting to entity runtime hooks.
Namespace
Drupal\workspaces\HookCode
public function entityTranslationInsert(EntityInterface $translation) : void {
if ($this->workspaceInfo
->isEntityIgnored($translation) || !$this->workspaceInfo
->isEntitySupported($translation) || $translation->isSyncing()) {
return;
}
$this->workspaceManager
->getActiveWorkspace()?->getProvider()
->entityTranslationInsert($translation);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.