You are here

function view_modes_display_entity_operation in View Modes Display 8.2

Implements hook_entity_operation().

File

./view_modes_display.module, line 48
Contains view_modes_display.module..

Code

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