content_moderation_entity_operation

content_moderation_entity_operation(EntityInterface $entity)

Implements hook_entity_operation().

File

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

Code

function content_moderation_entity_operation(EntityInterface $entity) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityTypeInfo::class)
    ->entityOperation($entity);
}
doc_Drupal
2016-10-29 08:58:33
Comments
Leave a Comment

Please login to continue.