You are here

function devel_entity_operation in Devel 8

Same name and namespace in other branches
  1. 8.3 devel.module \devel_entity_operation()
  2. 8.2 devel.module \devel_entity_operation()
  3. 4.x devel.module \devel_entity_operation()

Implements hook_entity_operation().

File

./devel.module, line 98
This module holds functions useful for Drupal development. Please contribute!

Code

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