function entity_hierarchy_microsite_entity_delete 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_delete()
Implements hook_ENTITY_TYPE_delete().
File
- modules/
entity_hierarchy_microsite/ entity_hierarchy_microsite.module, line 36 - Contains main module functionality.
Code
function entity_hierarchy_microsite_entity_delete(EntityInterface $node) {
if ($node
->getEntityTypeId() !== 'node') {
return;
}
\Drupal::service('class_resolver')
->getInstanceFromDefinition(EntityHooks::class)
->onNodeDelete($node);
}