You are here

public function Permissions::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/Permissions.php, line 29
Definition of Views\user\Plugin\views\field\Permissions.

Class

Permissions
Field handler to provide a list of permissions.

Namespace

Views\user\Plugin\views\field

Code

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