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