MenuLinkManager::$factory

The object that instantiates plugins managed by this manager. Type: \Drupal\Component\Plugin\Factory\FactoryInterface File core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 74 Class MenuLinkManager Manages discovery, instantiation, and tree building of menu link plugins. Namespace Drupal\Core\Menu Code protected $factory;

MenuLinkManager::$discovery

The object that discovers plugins managed by this manager. Type: \Drupal\Component\Plugin\Discovery\DiscoveryInterface File core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 67 Class MenuLinkManager Manages discovery, instantiation, and tree building of menu link plugins. Namespace Drupal\Core\Menu Code protected $discovery;

MenuLinkManager::$defaults

Provides some default values for the definition of all menu link plugins. @todo Decide how to keep these field definitions in sync. https://www.drupal.org/node/2302085 Type: array File core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 29 Class MenuLinkManager Manages discovery, instantiation, and tree building of menu link plugins. Namespace Drupal\Core\Menu Code protected $defaults = array( // (required) The name of the menu for this link. 'menu_name' => 'tools', // (requir

MenuLinkManager

Manages discovery, instantiation, and tree building of menu link plugins. This manager finds plugins that are rendered as menu links. Hierarchy class \Drupal\Core\Menu\MenuLinkManager implements MenuLinkManagerInterface File core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 19 Namespace Drupal\Core\Menu Members Name Modifiers Type Description MenuLinkManager::$defaults protected property Provides some default values for the definition of all menu link plugins. MenuLi

MenuLinkInterface::updateLink

public MenuLinkInterface::updateLink(array $new_definition_values, $persist) Updates the definition values for a menu link. Depending on the implementation details of the class, not all definition values may be changed. For example, changes to the title of a static link will be discarded. In general, this method should not be called directly, but will be called automatically from MenuLinkManagerInterface::updateDefinition(). Parameters array $new_definition_values: The new values for the link

MenuLinkInterface::isTranslatable

public MenuLinkInterface::isTranslatable() Returns whether this link can be translated. Return value bool TRUE if the link can be translated, FALSE otherwise. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 95 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function isTranslatable();

MenuLinkInterface::isResettable

public MenuLinkInterface::isResettable() Returns whether this link can be reset. In general, only links that store overrides using the menu_link.static.overrides service should return TRUE for this method. Return value bool TRUE if it can be reset, FALSE otherwise. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 87 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function isResettable();

MenuLinkInterface::isExpanded

public MenuLinkInterface::isExpanded() Returns whether the child menu links should always been shown. Return value bool TRUE for expanded, FALSE otherwise. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 76 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function isExpanded();

MenuLinkInterface::isEnabled

public MenuLinkInterface::isEnabled() Returns whether the menu link is enabled (not hidden). Return value bool TRUE for enabled, FALSE otherwise. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 68 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function isEnabled();

MenuLinkInterface::isDeletable

public MenuLinkInterface::isDeletable() Returns whether this link can be deleted. Return value bool TRUE if the link can be deleted, FALSE otherwise. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 103 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function isDeletable();