W3cubDocs

/Drupal 8

public function EntityListBuilderInterface::getOperations

public EntityListBuilderInterface::getOperations(EntityInterface $entity)

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.
  • url: An instance of \Drupal\Core\Url for the operation URL.
  • weight: The weight of this operation.

File

core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php, line 42

Class

EntityListBuilderInterface
Defines an interface to build entity listings.

Namespace

Drupal\Core\Entity

Code

public function getOperations(EntityInterface $entity);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityListBuilderInterface.php/function/EntityListBuilderInterface::getOperations/8.1.x