MenuLinkInterface::getMenuName

public MenuLinkInterface::getMenuName() Returns the menu name of the menu link. Return value string The menu name of the menu link. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 44 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getMenuName();

MenuLinkInterface::getFormClass

public MenuLinkInterface::getFormClass() Returns the name of a class that can build an editing form for this link. To instantiate the form class, use an instance of the \Drupal\Core\DependencyInjection\ClassResolverInterface, such as from the class_resolver service. Then call the setMenuLinkInstance() method on the form instance with the menu link plugin instance. @todo Add a code example. https://www.drupal.org/node/2302849 Return value string A class that implements \Drupal\Core\Menu\Form\Me

MenuLinkInterface::getEditRoute

public MenuLinkInterface::getEditRoute() Returns route information for a custom edit form for the menu link. Plugins should return a value here if they have a special edit form, or if they need to define additional local tasks, local actions, etc. that are visible from the edit form. Return value \Drupal\Core\Url|null A Url object, or NULL if there is no route because there is no custom edit route for this instance. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 220 Class MenuL

MenuLinkInterface::getDescription

public MenuLinkInterface::getDescription() Returns the description of the menu link. Return value string The description of the menu link. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 36 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getDescription();

MenuLinkInterface::getDeleteRoute

public MenuLinkInterface::getDeleteRoute() Returns route information for a route to delete the menu link. Return value \Drupal\Core\Url|null A Url object, or NULL if there is no route (e.g. when the link is not deletable). File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 207 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getDeleteRoute();

MenuLinkInterface::deleteLink

public MenuLinkInterface::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. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 183 Class MenuLinkInterface D

MenuLinkInterface

Defines an interface for classes providing a type of menu link. Hierarchy interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface; interface \Drupal\Core\Cache\CacheableDependencyInterfaceinterface \Drupal\Core\Menu\MenuLinkInterface File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 12 Namespace Drupal\Core\Menu Members Name Modifiers Type Description CacheableDependencyInterface::getCacheContexts

MenuLinkFormInterface::setMenuLinkInstance

public MenuLinkFormInterface::setMenuLinkInstance(MenuLinkInterface $menu_link) Injects the menu link plugin instance. Parameters \Drupal\Core\Menu\MenuLinkInterface $menu_link: A menu link plugin instance. File core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php, line 25 Class MenuLinkFormInterface Defines an interface for edit forms of menu links. Namespace Drupal\Core\Menu\Form Code public function setMenuLinkInstance(MenuLinkInterface $menu_link);

MenuLinkFormInterface::extractFormValues

public MenuLinkFormInterface::extractFormValues(array &$form, FormStateInterface $form_state) Extracts a plugin definition from form values. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The new plugin definition values taken from the form values. The plugin ID must be returned as part of the definition. File core/lib/Drupal/Core/Menu/Form/MenuLinkFormIn

MenuLinkFormInterface

Defines an interface for edit forms of menu links. All menu link plugins use the same interface for their configuration or editing form, but the implementations may differ. Hierarchy interface \Drupal\Core\Plugin\PluginFormInterfaceinterface \Drupal\Core\Menu\Form\MenuLinkFormInterface See also \Drupal\Core\Menu\MenuLinkInterface::getFormClass() File core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php, line 17 Namespace Drupal\Core\Menu\Form Members Name Modifiers Type De