function ContentModerationHooks::entityDelete
Implements hook_entity_delete().
File
-
core/
modules/ content_moderation/ src/ Hook/ ContentModerationHooks.php, line 137
Class
- ContentModerationHooks
- Hook implementations for content_moderation.
Namespace
Drupal\content_moderation\HookCode
public function entityDelete(EntityInterface $entity) {
return \Drupal::service('class_resolver')->getInstanceFromDefinition(EntityOperations::class)
->entityDelete($entity);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.