You are here

function content_moderation_entity_delete in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/content_moderation.module \content_moderation_entity_delete()
  2. 9 core/modules/content_moderation/content_moderation.module \content_moderation_entity_delete()

Implements hook_entity_delete().

File

core/modules/content_moderation/content_moderation.module, line 128
Contains content_moderation.module.

Code

function content_moderation_entity_delete(EntityInterface $entity) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityOperations::class)
    ->entityDelete($entity);
}