MenuTreeStorage::$definitions

Stores definitions that have already been loaded for better performance. An array of plugin definition arrays, keyed by plugin ID. Type: array File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 67 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $definitions = array();

MenuTreeStorage::$definitionFields

List of plugin definition fields. @todo Decide how to keep these field definitions in sync. https://www.drupal.org/node/2302085 Type: array See also \Drupal\Core\Menu\MenuLinkManager::$defaults File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 86 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $definitionFields = array( 'menu_name', 'route_name', 'route_parameters', 'url', 'title', 'description', 'pa

MenuTreeStorage::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 30 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $connection;

MenuTreeStorage::$cacheTagsInvalidator

The cache tags invalidator. Type: \Drupal\Core\Cache\CacheTagsInvalidatorInterface File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 44 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $cacheTagsInvalidator;

MenuTreeStorage

Provides a menu tree storage using the database. Hierarchy class \Drupal\Core\Menu\MenuTreeStorage implements MenuTreeStorageInterface File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 18 Namespace Drupal\Core\Menu Members Name Modifiers Type Description MenuTreeStorage::$cacheTagsInvalidator protected property The cache tags invalidator. MenuTreeStorage::$connection protected property The database connection. MenuTreeStorage::$definitionFields protect

MenuTreeParameters::setTopLevelOnly

public MenuTreeParameters::setTopLevelOnly() Ensures only the top level of the tree is loaded. Return value $this File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 193 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespace Drupal\Core\Menu Code public function setTopLevelOnly() { $this->setMaxDepth(1); return $this; }

MenuTreeParameters::setRoot

public MenuTreeParameters::setRoot($root) Sets a root for menu tree loading. @codeCoverageIgnore Parameters string $root: A menu link plugin ID, or empty string '' to use the root of the whole tree. Return value $this File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 87 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespace Drupal\Core\Menu Code public function setRoot($root) { $this->root = (string) $root; return $this; }

MenuTreeParameters::setMinDepth

public MenuTreeParameters::setMinDepth($min_depth) Sets a minimum depth for menu tree loading. Parameters int $min_depth: The (root-relative) minimum depth to apply. Return value $this File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 100 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespace Drupal\Core\Menu Code public function setMinDepth($min_depth) { $this->minDepth = max(1, $min_depth); return $this; }

MenuTreeParameters::setMaxDepth

public MenuTreeParameters::setMaxDepth($max_depth) Sets a maximum depth for menu tree loading. @codeCoverageIgnore Parameters int $max_depth: The (root-relative) maximum depth to apply. Return value $this File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 115 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespace Drupal\Core\Menu Code public function setMaxDepth($max_depth) { $this->maxDepth = $max_depth; return $this; }

MenuTreeParameters::setActiveTrail

public MenuTreeParameters::setActiveTrail(array $active_trail) Sets the active trail IDs used to set the inActiveTrail property. @codeCoverageIgnore Parameters string[] $active_trail: An array containing the active trail: a list of menu link plugin IDs. Return value $this See also \Drupal\Core\Menu\MenuActiveTrail::getActiveTrailIds() File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 147 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespac