MenuLinkBase::getCacheContexts

public MenuLinkBase::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cache ID.

MenuLinkBase::deleteLink

public MenuLinkBase::deleteLink() Deletes a menu link. In general, this method should not be called directly, but will be called automatically from MenuLinkManagerInterface::removeDefinition(). This method will only delete the link from any additional storage, but not from the plugin.manager.menu.link service. Throws \Drupal\Component\Plugin\Exception\PluginException If the link is not deletable. Overrides MenuLinkInterface::deleteLink File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 166

MenuLinkBase::$overrideAllowed

The list of definition values where an override is allowed. The keys are definition names. The values are ignored. Type: array File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 22 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code protected $overrideAllowed = array();

MenuLinkBase

Defines a base menu link class. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Menu\MenuLinkBase implements MenuLinkInterface File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 13 Namespace Drupal\Core\Menu Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds

MenuInterface::isLocked

public MenuInterface::isLocked() Determines if this menu is locked. Return value bool TRUE if the menu is locked, FALSE otherwise. File core/modules/system/src/MenuInterface.php, line 26 Class MenuInterface Provides an interface defining a menu entity. Namespace Drupal\system Code public function isLocked();

MenuInterface::getDescription

public MenuInterface::getDescription() Returns the description of the menu. Return value string Description of the menu. File core/modules/system/src/MenuInterface.php, line 18 Class MenuInterface Provides an interface defining a menu entity. Namespace Drupal\system Code public function getDescription();

MenuInterface

Provides an interface defining a menu entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\system\MenuInterface File core/modules/system/src/MenuInterface.php, line 10 Namespace Drupal\system Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. CacheableDependen

MenuForm::__construct

public MenuForm::__construct(QueryFactory $entity_query_factory, MenuLinkManagerInterface $menu_link_manager, MenuLinkTreeInterface $menu_tree, LinkGeneratorInterface $link_generator) Constructs a MenuForm object. Parameters \Drupal\Core\Entity\Query\QueryFactory $entity_query_factory: The factory for entity queries. \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager. \Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The menu tree service. \Drupal\Core\Utili

MenuForm::submitOverviewForm

protected MenuForm::submitOverviewForm(array $complete_form, FormStateInterface $form_state) Submit handler for the menu overview form. This function takes great care in saving parent items first, then items underneath them. Saving items in the incorrect order can break the tree. File core/modules/menu_ui/src/MenuForm.php, line 449 Class MenuForm Base form for menu edit forms. Namespace Drupal\menu_ui Code protected function submitOverviewForm(array $complete_form, FormStateInterface $

MenuForm::submitForm

public MenuForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless the enti