class RouteDetailMenuLink
Modifies the menu link to add current route path.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
- class \Drupal\Core\Menu\MenuLinkBase extends \Drupal\Core\Menu\MenuLinkInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Menu\MenuLinkDefault extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface implements \Drupal\Core\Menu\MenuLinkBase
- class \Drupal\devel\Plugin\Menu\RouteDetailMenuLink implements \Drupal\Core\Menu\MenuLinkDefault
- class \Drupal\Core\Menu\MenuLinkDefault extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface implements \Drupal\Core\Menu\MenuLinkBase
- class \Drupal\Core\Menu\MenuLinkBase extends \Drupal\Core\Menu\MenuLinkInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of RouteDetailMenuLink
1 string reference to 'RouteDetailMenuLink'
File
-
src/
Plugin/ Menu/ RouteDetailMenuLink.php, line 11
Namespace
Drupal\devel\Plugin\MenuView source
class RouteDetailMenuLink extends MenuLinkDefault {
/**
* {@inheritdoc}
*/
public function getOptions() {
$options = parent::getOptions();
$options['query']['path'] = '/' . Url::fromRoute('<current>')->getInternalPath();
return $options;
}
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
return 0;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
DependencySerializationTrait::$_entityStorages | protected | property | An array of entity type IDs keyed by the property name of their storages. | ||
DependencySerializationTrait::$_serviceIds | protected | property | An array of service IDs keyed by property name used for serialization. | ||
DependencySerializationTrait::__sleep | public | function | |||
DependencySerializationTrait::__wakeup | public | function | #[\ReturnTypeWillChange] | ||
MenuLinkBase::deleteLink | public | function | |||
MenuLinkBase::getCacheContexts | public | function | 1 | ||
MenuLinkBase::getCacheContexts | public | function | 1 | ||
MenuLinkBase::getCacheTags | public | function | 1 | ||
MenuLinkBase::getCacheTags | public | function | 1 | ||
MenuLinkBase::getDeleteRoute | public | function | |||
MenuLinkBase::getEditRoute | public | function | |||
MenuLinkBase::getFormClass | public | function | |||
MenuLinkBase::getMenuName | public | function | |||
MenuLinkBase::getMetaData | public | function | |||
MenuLinkBase::getParent | public | function | |||
MenuLinkBase::getProvider | public | function | |||
MenuLinkBase::getRouteName | public | function | |||
MenuLinkBase::getRouteParameters | public | function | |||
MenuLinkBase::getTranslateRoute | public | function | |||
MenuLinkBase::getUrlObject | public | function | |||
MenuLinkBase::getWeight | public | function | |||
MenuLinkBase::isDeletable | public | function | |||
MenuLinkBase::isEnabled | public | function | |||
MenuLinkBase::isExpanded | public | function | |||
MenuLinkBase::isTranslatable | public | function | |||
MenuLinkDefault::$overrideAllowed | protected | property | |||
MenuLinkDefault::$staticOverride | protected | property | The static menu link service used to store updates to weight/parent etc. | ||
MenuLinkDefault::create | public static | function | |||
MenuLinkDefault::getDescription | public | function | |||
MenuLinkDefault::getTitle | public | function | |||
MenuLinkDefault::isResettable | public | function | |||
MenuLinkDefault::updateLink | public | function | |||
MenuLinkDefault::__construct | public | function | Constructs a new MenuLinkDefault. | ||
MessengerTrait::$messenger | protected | property | The messenger. | 7 | |
MessengerTrait::$messenger | protected | property | The messenger. | 7 | |
MessengerTrait::messenger | public | function | Gets the messenger. | 7 | |
MessengerTrait::messenger | public | function | Gets the messenger. | 7 | |
MessengerTrait::setMessenger | public | function | Sets the messenger. | ||
PluginBase::$configuration | protected | property | Configuration information passed into the plugin. | ||
PluginBase::$pluginDefinition | protected | property | The plugin implementation definition. | ||
PluginBase::$pluginId | protected | property | The plugin_id. | ||
PluginBase::DERIVATIVE_SEPARATOR | constant | A string which is used to separate base plugin IDs from the derivative ID. | |||
PluginBase::getBaseId | public | function | |||
PluginBase::getDerivativeId | public | function | |||
PluginBase::getPluginDefinition | public | function | 1 | ||
PluginBase::getPluginDefinition | public | function | 1 | ||
PluginBase::getPluginId | public | function | |||
PluginBase::isConfigurable | public | function | Determines if the plugin is configurable. | ||
RouteDetailMenuLink::getCacheMaxAge | public | function | The maximum age for which this object may be cached. | Overrides MenuLinkBase::getCacheMaxAge | |
RouteDetailMenuLink::getOptions | public | function | Returns the options for this link. | Overrides MenuLinkBase::getOptions | |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | ||
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | ||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | ||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | ||
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | ||
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |