Search for menu

  1. Search 7.x for menu
  2. Search 9.5.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 Menu source from database.

All search results

Title Object type File name Summary
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
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().
MenuTreeSerializationTitleFilledTest class core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleFilledTest.php Runs MenuTreeSerializationTitleTest with a dump filled with content.
MenuTreeSerializationTitleFilledTest.php file core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleFilledTest.php
MenuTreeSerializationTitleFilledTest::$defaultTheme property core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleFilledTest.php The theme to install as the default for testing.
MenuTreeSerializationTitleFilledTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleFilledTest.php Set database dump files to be used.
MenuTreeSerializationTitleTest class core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleTest.php Tests system_update_8001().
MenuTreeSerializationTitleTest.php file core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleTest.php
MenuTreeSerializationTitleTest::$defaultTheme property core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleTest.php The theme to install as the default for testing.
MenuTreeSerializationTitleTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleTest.php Set database dump files to be used.
MenuTreeSerializationTitleTest::testUpdate function core/modules/system/tests/src/Functional/Update/MenuTreeSerializationTitleTest.php Ensures that the system_update_8001() runs as expected.
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.

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