You are here

function webform_analysis_entity_operation in Webform Analysis 8

Implements hook_entity_operation().

File

./webform_analysis.module, line 38
Webform Analysis - Module.

Code

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