function devel_entity_operation

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

Implements hook_entity_operation().

File

./devel.module, line 90

Code

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