function content_moderation_entity_delete

Same name in other branches
  1. 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_entity_delete()
  2. 10 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

Code

function content_moderation_entity_delete(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.