5 * Contains hook implementations for Entity Operation Test Module.
8 use Drupal\Core\Entity\EntityInterface;
12 * Implements hook_entity_operation().
14 function entity_test_operation_entity_operation(EntityInterface $entity) {
17 'title' => t('Front page'),
18 'url' => Url::fromRoute('<front>'),