function devel_entity_operation

Same name in other branches
  1. 8.x-1.x devel.module \devel_entity_operation()
  2. 5.x devel.module \devel_entity_operation()

Implements hook_entity_operation().

File

./devel.module, line 100

Code

function devel_entity_operation(EntityInterface $entity) {
    return \Drupal::service('class_resolver')->getInstanceFromDefinition(EntityTypeInfo::class)
        ->entityOperation($entity);
}