You are here

protected function FieldPluginBase::linkGenerator in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::linkGenerator()

Gets the link generator.

Return value

\Drupal\Core\Utility\LinkGeneratorInterface

File

core/modules/views/src/Plugin/views/field/FieldPluginBase.php, line 1794
Contains \Drupal\views\Plugin\views\field\FieldPluginBase.

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

protected function linkGenerator() {
  if (!isset($this->linkGenerator)) {
    $this->linkGenerator = \Drupal::linkGenerator();
  }
  return $this->linkGenerator;
}