You are here

protected function PluginBase::url in Feeds 8.3

Generates a URL or path for a specific route based on the given parameters.

See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for details on the arguments, usage, and possible exceptions.

Return value

string The generated URL for the given route.

See also

\Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute()

1 call to PluginBase::url()
EntityProcessorBase::entityValidate in src/Feeds/Processor/EntityProcessorBase.php

File

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

Class

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

Namespace

Drupal\feeds\Plugin\Type

Code

protected function url($route_name, $route_parameters = [], $options = []) {
  return $this
    ->urlGenerator()
    ->generateFromRoute($route_name, $route_parameters, $options);
}