Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

function Drupal::linkGenerator

Returns the link generator service.

Return value

\Drupal\Core\Utility\LinkGeneratorInterface

1 call to Drupal::linkGenerator()
FieldPluginBase::linkGenerator in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Gets the link generator.

File

core/lib/Drupal.php, line 585

Class

Drupal
Static Service Container wrapper.

Code

public static function linkGenerator() {
    return static::getContainer()->get('link_generator');
}
RSS feed
Powered by Drupal