MenuLinkBase::getProvider

public MenuLinkBase::getProvider() Returns the provider (module name) of the menu link. Return value string The provider of the menu link. Overrides MenuLinkInterface::getProvider File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 45 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getProvider() { return $this->pluginDefinition['provider']; }

MenuLinkBase::getParent

public MenuLinkBase::getParent() Returns the plugin ID of the menu link's parent, or an empty string. Return value string The parent plugin ID. Overrides MenuLinkInterface::getParent File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 52 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getParent() { return $this->pluginDefinition['parent']; }

MenuLinkBase::getOptions

public MenuLinkBase::getOptions() Returns the options for this link. Return value array An associative array of options. Overrides MenuLinkInterface::getOptions File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 94 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getOptions() { return $this->pluginDefinition['options'] ? : array(); }

MenuLinkBase::getMetaData

public MenuLinkBase::getMetaData() Returns any metadata for this link. Return value array The metadata for the menu link. Overrides MenuLinkInterface::getMetaData File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 101 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getMetaData() { return $this->pluginDefinition['metadata'] ? : array(); }

MenuLinkBase::getMenuName

public MenuLinkBase::getMenuName() Returns the menu name of the menu link. Return value string The menu name of the menu link. Overrides MenuLinkInterface::getMenuName File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 38 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getMenuName() { return $this->pluginDefinition['menu_name']; }

MenuLinkBase::getFormClass

public MenuLinkBase::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\MenuLin

MenuLinkBase::getEditRoute

public MenuLinkBase::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. Overrides MenuLinkInterface::getEditRoute File core/lib/Drupal/Core/Menu/MenuLinkBa

MenuLinkBase::getDeleteRoute

public MenuLinkBase::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). Overrides MenuLinkInterface::getDeleteRoute File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 145 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getDeleteRoute() { return NULL; }

MenuLinkBase::getCacheTags

public MenuLinkBase::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides CacheableDependencyInterface::getCacheTags File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 187 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getCacheTags() { return []; }

MenuLinkBase::getCacheMaxAge

public MenuLinkBase::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides CacheableDependencyInterface::getCacheMaxAge File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 173 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getCacheMaxAge() { return Cache::PERMANENT; }