function entity_hierarchy_microsite_entity_update in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 modules/entity_hierarchy_microsite/entity_hierarchy_microsite.module \entity_hierarchy_microsite_entity_update()
Implements hook_ENTITY_TYPE_update().
File
- modules/
entity_hierarchy_microsite/ entity_hierarchy_microsite.module, line 19 - Contains main module functionality.
Code
function entity_hierarchy_microsite_entity_update(EntityInterface $node) {
if ($node
->getEntityTypeId() !== 'node') {
return;
}
\Drupal::service('class_resolver')
->getInstanceFromDefinition(EntityHooks::class)
->onNodeUpdate($node);
}