public function EntityListControllerInterface::getOperations

Provides an array of information to build a list of operation links.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.

Return value

array An associative array of operation link data for this list, keyed by operation name, containing the following key-value pairs:

  • title: The localized title of the operation.
  • href: The path for the operation.
  • options: An array of URL options for the path.
  • weight: The weight of this operation.
1 method overrides EntityListControllerInterface::getOperations()

File

drupal/core/lib/Drupal/Core/Entity/EntityListControllerInterface.php, line 48
Contains \Drupal\Core\Entity\EntityListControllerInterface.

Class

EntityListControllerInterface
Defines an interface for entity list controllers.

Namespace

Drupal\Core\Entity

Code

public function getOperations(EntityInterface $entity);