Implements Drupal\Core\Entity\EntityListControllerInterface::getOperations().
Overrides EntityListControllerInterface::getOperations
public function getOperations(EntityInterface $entity) {
$uri = $entity
->uri();
$operations['edit'] = array(
'title' => t('Edit'),
'href' => $uri['path'] . '/edit',
'options' => $uri['options'],
'weight' => 10,
);
$operations['delete'] = array(
'title' => t('Delete'),
'href' => $uri['path'] . '/delete',
'options' => $uri['options'],
'weight' => 100,
);
return $operations;
}