function MenuLinkInterface::getOperations
Same name in other branches
- 10 core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getOperations()
Provides an array of information to build a list of operation links.
Return value
array An associative array of operation link data for this menu link, 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.
1 method overrides MenuLinkInterface::getOperations()
- MenuLinkBase::getOperations in core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php - Provides an array of information to build a list of operation links.
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkInterface.php, line 251
Class
- MenuLinkInterface
- Defines an interface for classes providing a type of menu link.
Namespace
Drupal\Core\MenuCode
public function getOperations() : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.