You are here

public function Roles::init in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Plugin/views/field/Roles.php \Drupal\user\Plugin\views\field\Roles::init()

Initialize the plugin.

Parameters

\Drupal\views\ViewExecutable $view: The view object.

\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.

array $options: The options configured for this plugin.

Overrides FieldPluginBase::init

File

core/modules/user/src/Plugin/views/field/Roles.php, line 60
Contains \Drupal\user\Plugin\views\field\Roles.

Class

Roles
Field handler to provide a list of roles.

Namespace

Drupal\user\Plugin\views\field

Code

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