public InaccessibleMenuLink::__construct(MenuLinkInterface $wrapped_link)
Constructs a new InaccessibleMenuLink.
\Drupal\Core\Menu\MenuLinkInterface $wrapped_link: The menu link to wrap.
Overrides PluginBase::__construct
public function __construct(MenuLinkInterface $wrapped_link) { $this->wrappedLink = $wrapped_link; $plugin_definition = [ 'route_name' => '<front>', 'route_parameters' => [], 'url' => NULL, ] + $this->wrappedLink->getPluginDefinition(); parent::__construct([], $this->wrappedLink->getPluginId(), $plugin_definition); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!InaccessibleMenuLink.php/function/InaccessibleMenuLink::__construct/8.1.x