public function User::init

Same name in this branch

Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::init().

Overrides FieldPluginBase::init

1 call to User::init()
Name::init in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php
Overrides \Drupal\user\Plugin\views\field\User::init().
1 method overrides User::init()
Name::init in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php
Overrides \Drupal\user\Plugin\views\field\User::init().

File

drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/User.php, line 27
Definition of Drupal\user\Plugin\views\field\User.

Class

User
Field handler to provide simple renderer that allows linking to a user.

Namespace

Drupal\user\Plugin\views\field

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  if (!empty($this->options['link_to_user'])) {
    $this->additional_fields['uid'] = 'uid';
  }
}