wrappedLink = $wrapped_link; $plugin_definition = [ 'route_name' => '', 'route_parameters' => [], 'url' => NULL, ] + $this->wrappedLink->getPluginDefinition(); parent::__construct([], $this->wrappedLink->getPluginId(), $plugin_definition); } /** * {@inheritdoc} */ public function getTitle() { return $this->t('Inaccessible'); } /** * {@inheritdoc} */ public function getDescription() { return ''; } /** * {@inheritdoc} */ public function getCacheContexts() { return $this->wrappedLink->getCacheContexts(); } /** * {@inheritdoc} */ public function getCacheTags() { return $this->wrappedLink->getCacheTags(); } /** * {@inheritdoc} */ public function getCacheMaxAge() { return $this->wrappedLink->getCacheMaxAge(); } /** * {@inheritdoc} */ public function updateLink(array $new_definition_values, $persist) { throw new PluginException('Inaccessible menu link plugins do not support updating'); } }