You are here

protected function PluginBase::urlGenerator in Feeds 8.3

Returns the URL generator service.

Return value

\Drupal\Core\Routing\UrlGeneratorInterface The URL generator service.

File

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

Class

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

Namespace

Drupal\feeds\Plugin\Type

Code

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