function MenuLinkContent::getListBuilderOperations
Same name in other branches
- 11.x core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php \Drupal\menu_link_content\Plugin\Menu\MenuLinkContent::getListBuilderOperations()
Load entity operations from the list builder.
Return value
array An array of operations.
4 calls to MenuLinkContent::getListBuilderOperations()
- MenuLinkContent::getDeleteRoute in core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php - Returns route information for a route to delete the menu link.
- MenuLinkContent::getEditRoute in core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php - Returns route information for a custom edit form for the menu link.
- MenuLinkContent::getOperations in core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php - Provides an array of information to build a list of operation links.
- MenuLinkContent::getTranslateRoute in core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php - Returns route information for a route to translate the menu link.
File
-
core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php, line 222
Class
- MenuLinkContent
- Provides the menu link plugin for content menu links.
Namespace
Drupal\menu_link_content\Plugin\MenuCode
protected function getListBuilderOperations() {
if (is_null($this->listBuilderOperations)) {
$this->listBuilderOperations = $this->entityTypeManager
->getListBuilder($this->getEntity()
->getEntityTypeId())
->getOperations($this->getEntity());
}
return $this->listBuilderOperations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.