function menu_link_load_multiple

Loads menu link entities from the database.

Parameters

array $mlids: (optional) An array of entity IDs. If omitted, all entities are loaded.

bool $reset: (optional) Whether to reset the internal cache.

Return value

array<\Drupal\menu_link\Plugin\Core\Entity\MenuLink> An array of menu link entities indexed by entity IDs.

See also

menu_link_load()

entity_load_multiple()

7 calls to menu_link_load_multiple()
LinksTest::createLinkHierarchy in drupal/core/modules/system/lib/Drupal/system/Tests/Menu/LinksTest.php
Create a simple hierarchy of links.
MenuDeleteMenuForm::submitForm in drupal/core/modules/menu/lib/Drupal/menu/Form/MenuDeleteMenuForm.php
Form submission handler.
MenuRouterTest::testMenuHidden in drupal/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterTest.php
Tests menu link depth and parents of local tasks and menu callbacks.
menu_load_links in drupal/core/includes/menu.inc
Returns an array containing all links for a menu.
menu_overview_form in drupal/core/modules/menu/menu.admin.inc
Form constructor to edit an entire menu tree at once.

... See full list

File

drupal/core/modules/menu_link/menu_link.module, line 55
Enables users to create menu links.

Code

function menu_link_load_multiple(array $mlids = NULL, $reset = FALSE) {
  return entity_load_multiple('menu_link', $mlids, $reset);
}