MenuListBuilder::render

public MenuListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides EntityListBuilder::render File core/modules/menu_ui/src/MenuListBuilder.php, line 63 Class MenuListBuilder Defines a class to build a listing of menu entities. Namespace Drupal\menu_ui Code public function render() { $build = parent::render(); $build['#attached']['library'][] = "menu_ui/drupal.menu_ui.adminforms"; re

MenuListBuilder::getDefaultOperations

public MenuListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/menu_ui/src/MenuListBuilder.php, line 43 Class MenuListBuilder Defines a class to build a listing of menu entities. Name

MenuListBuilder::buildRow

public MenuListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/menu_ui/src/MenuListBuilder.php, line 31 Class MenuListBuilder Defines a class to build a listing of menu

MenuListBuilder::buildHeader

public MenuListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/menu_ui/src/MenuListBuilder.php, line 19 Class MenuListBuilder Defines a class to build a listing of menu entities. Namespace Drupal\menu_ui Code public function buildHeader() { $header['title'] = t('Title'); $header['des

MenuListBuilder

Defines a class to build a listing of menu entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\menu_ui\MenuListBuilder See also \Drupal\system\Entity\Menu menu_entity_info() File core/modules/menu_ui/src/MenuListBuilder.php, line 14 Namespace D

MenuLinkTreeInterface::transform

public MenuLinkTreeInterface::transform(array $tree, array $manipulators) Applies menu link tree manipulators to transform the given tree. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu tree to manipulate. array $manipulators: The menu link tree manipulators to apply. Each is an array with keys: callable: a callable or a string that can be resolved to a callable by \Drupal\Core\Controller\ControllerResolverInterface::getControllerFromDefinition() args: optional array of a

MenuLinkTreeInterface::maxDepth

public MenuLinkTreeInterface::maxDepth() Returns the maximum depth of tree that is supported. Return value int The maximum depth. File core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php, line 102 Class MenuLinkTreeInterface Defines an interface for loading, transforming and rendering menu link trees. Namespace Drupal\Core\Menu Code public function maxDepth();

MenuLinkTreeInterface::load

public MenuLinkTreeInterface::load($menu_name, MenuTreeParameters $parameters) Loads a menu tree with a menu link plugin instance at each element. Parameters string $menu_name: The name of the menu. \Drupal\Core\Menu\MenuTreeParameters $parameters: The parameters to determine which menu links to be loaded into a tree. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] A menu link tree. File core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php, line 61 Class MenuLinkTreeInterface Defines

MenuLinkTreeInterface::getSubtreeHeight

public MenuLinkTreeInterface::getSubtreeHeight($id) Finds the height of a subtree rooted by of the given ID. Parameters string $id: The ID of an item in the storage. Return value int Returns the height of the subtree. This will be at least 1 if the ID exists, or 0 if the ID does not exist in the storage. File core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php, line 114 Class MenuLinkTreeInterface Defines an interface for loading, transforming and rendering menu link trees. Namespace

MenuLinkTreeInterface::getExpanded

public MenuLinkTreeInterface::getExpanded($menu_name, array $parents) Finds expanded links in a menu given a set of possible parents. Parameters string $menu_name: The menu name. array $parents: One or more parent IDs to match. Return value array The menu link IDs that are flagged as expanded in this menu. File core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php, line 127 Class MenuLinkTreeInterface Defines an interface for loading, transforming and rendering menu link trees. Namespace