function content_moderation_entity_insert

Same name in other branches
  1. 9 core/modules/content_moderation/content_moderation.module \content_moderation_entity_insert()
  2. 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_entity_insert()

Implements hook_entity_insert().

File

core/modules/content_moderation/content_moderation.module, line 108

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.