Search for menu

  1. Search 7.x for menu
  2. Search 8.9.x for menu
  3. Search 10.3.x for menu
  4. Search 11.x for menu
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Menu class core/modules/system/src/Entity/Menu.php Defines the Menu configuration entity class.
Menu class core/modules/system/src/Plugin/migrate/source/Menu.php Drupal 6/7 menu source from database.

All search results

Title Object type File name Summary
MenuTreeParameters::$expandedParents property core/lib/Drupal/Core/Menu/MenuTreeParameters.php An array of parent link IDs.
MenuTreeParameters::$maxDepth property core/lib/Drupal/Core/Menu/MenuTreeParameters.php The maximum depth of menu links in the resulting tree relative to the root.
MenuTreeParameters::$minDepth property core/lib/Drupal/Core/Menu/MenuTreeParameters.php The minimum depth of menu links in the resulting tree relative to the root.
MenuTreeParameters::$root property core/lib/Drupal/Core/Menu/MenuTreeParameters.php A menu link plugin ID that should be used as the root.
MenuTreeParameters::addCondition function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Adds a custom query condition.
MenuTreeParameters::addExpandedParents function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Adds parent menu links IDs to restrict the tree.
MenuTreeParameters::excludeRoot function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Excludes the root menu link from the tree.
MenuTreeParameters::onlyEnabledLinks function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Excludes links that are not enabled.
MenuTreeParameters::serialize function core/lib/Drupal/Core/Menu/MenuTreeParameters.php
MenuTreeParameters::setActiveTrail function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Sets the active trail IDs used to set the inActiveTrail property.
MenuTreeParameters::setMaxDepth function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Sets a maximum depth for menu tree loading.
MenuTreeParameters::setMinDepth function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Sets a minimum depth for menu tree loading.
MenuTreeParameters::setRoot function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Sets a root for menu tree loading.
MenuTreeParameters::setTopLevelOnly function core/lib/Drupal/Core/Menu/MenuTreeParameters.php Ensures only the top level of the tree is loaded.
MenuTreeParameters::unserialize function core/lib/Drupal/Core/Menu/MenuTreeParameters.php
MenuTreeParameters::__serialize function core/lib/Drupal/Core/Menu/MenuTreeParameters.php
MenuTreeParameters::__unserialize function core/lib/Drupal/Core/Menu/MenuTreeParameters.php
MenuTreeParametersTest class core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Tests the menu link tree parameters value object.
MenuTreeParametersTest.php file core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php
MenuTreeParametersTest::providerTestSetMinDepth function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Provides test data for testSetMinDepth().
MenuTreeParametersTest::testAddCondition function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Tests addCondition().
MenuTreeParametersTest::testAddExpanded function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Tests addExpandedParents().
MenuTreeParametersTest::testExcludeRoot function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Tests excludeRoot().
MenuTreeParametersTest::testOnlyEnabledLinks function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Tests onlyEnabledLinks().
MenuTreeParametersTest::testSerialize function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php @covers ::serialize
@covers ::unserialize
MenuTreeParametersTest::testSetMinDepth function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Tests setMinDepth().
MenuTreeParametersTest::testSetTopLevelOnly function core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php Tests setTopLevelOnly().
MenuTreeStorage class core/lib/Drupal/Core/Menu/MenuTreeStorage.php Provides a menu tree storage using the database.
MenuTreeStorage.php file core/lib/Drupal/Core/Menu/MenuTreeStorage.php
MenuTreeStorage::$cacheTagsInvalidator property core/lib/Drupal/Core/Menu/MenuTreeStorage.php The cache tags invalidator.
MenuTreeStorage::$connection property core/lib/Drupal/Core/Menu/MenuTreeStorage.php The database connection.
MenuTreeStorage::$definitionFields property core/lib/Drupal/Core/Menu/MenuTreeStorage.php List of plugin definition fields.
MenuTreeStorage::$definitions property core/lib/Drupal/Core/Menu/MenuTreeStorage.php Stores definitions that have already been loaded for better performance.
MenuTreeStorage::$menuCacheBackend property core/lib/Drupal/Core/Menu/MenuTreeStorage.php Cache backend instance for the extracted tree data.
MenuTreeStorage::$options property core/lib/Drupal/Core/Menu/MenuTreeStorage.php Additional database connection options to use in queries.
MenuTreeStorage::$serializedFields property core/lib/Drupal/Core/Menu/MenuTreeStorage.php List of serialized fields.
MenuTreeStorage::$table property core/lib/Drupal/Core/Menu/MenuTreeStorage.php The database table name.
MenuTreeStorage::collectRoutesAndDefinitions function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Traverses the menu tree and collects all the route names and definitions.
MenuTreeStorage::countMenuLinks function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Counts the total number of menu links in one menu or all menus.
MenuTreeStorage::definitionFields function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Determines fields that are part of the plugin definition.
MenuTreeStorage::delete function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Deletes a menu link definition from the storage.
MenuTreeStorage::doBuildTreeData function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Prepares the data for calling $this->treeDataRecursive().
MenuTreeStorage::doCollectRoutesAndDefinitions function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Collects all the route names and definitions.
MenuTreeStorage::doDeleteMultiple function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Purge menu links from the database.
MenuTreeStorage::doFindChildrenRelativeDepth function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Finds the relative depth of this link's deepest child.
MenuTreeStorage::doSave function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Saves a link without clearing caches.
MenuTreeStorage::ensureTableExists function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Checks if the tree table exists and create it if not.
MenuTreeStorage::findNoLongerExistingLinks function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Find any previously discovered menu links that no longer exist.
MenuTreeStorage::findParent function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Loads the parent definition if it exists.
MenuTreeStorage::getAllChildIds function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Loads all the IDs for menu links that are below the given ID.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.