public function Roles::init in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\field\FieldPluginBase::init().
Overrides FieldPluginBase::init
File
- lib/
Views/ user/ Plugin/ views/ field/ Roles.php, line 29 - Definition of Views\user\Plugin\views\field\Roles.
Class
- Roles
- Field handler to provide a list of roles.
Namespace
Views\user\Plugin\views\fieldCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
$this->additional_fields['uid'] = array(
'table' => 'users',
'field' => 'uid',
);
}