public EntityListBuilder::getOperations(EntityInterface $entity)
Provides an array of information to build a list of operation links.
\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.
array An associative array of operation link data for this list, keyed by operation name, containing the following key-value pairs:
Overrides EntityListBuilderInterface::getOperations
public function getOperations(EntityInterface $entity) { $operations = $this->getDefaultOperations($entity); $operations += $this->moduleHandler()->invokeAll('entity_operation', array($entity)); $this->moduleHandler->alter('entity_operation', $operations, $entity); uasort($operations, '\Drupal\Component\Utility\SortArray::sortByWeightElement'); return $operations; }
© 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!EntityListBuilder.php/function/EntityListBuilder::getOperations/8.1.x