function devel_entity_operation in Devel 8.3
Same name and namespace in other branches
- 8 devel.module \devel_entity_operation()
- 8.2 devel.module \devel_entity_operation()
- 4.x devel.module \devel_entity_operation()
Implements hook_entity_operation().
File
- ./
devel.module, line 96 - This module holds functions useful for Drupal development.
Code
function devel_entity_operation(EntityInterface $entity) {
return \Drupal::service('class_resolver')
->getInstanceFromDefinition(EntityTypeInfo::class)
->entityOperation($entity);
}