You are here

protected function PluginBase::linkGenerator in Feeds 8.3

Returns the link generator service.

Return value

\Drupal\Core\Utility\LinkGeneratorInterface The link generator service.

File

src/Plugin/Type/PluginBase.php, line 167

Class

PluginBase
The base class for the fetcher, parser, and processor plugins.

Namespace

Drupal\feeds\Plugin\Type

Code

protected function linkGenerator() {
  if (!$this->linkGenerator) {
    $this->linkGenerator = $this
      ->container()
      ->get('link_generator');
  }
  return $this->linkGenerator;
}