You are here

public function RoleExpireExpiryData::init in Role Expire 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/field/RoleExpireExpiryData.php \Drupal\role_expire\Plugin\views\field\RoleExpireExpiryData::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

src/Plugin/views/field/RoleExpireExpiryData.php, line 71

Class

RoleExpireExpiryData
Field handler to display the role expire data.

Namespace

Drupal\role_expire\Plugin\views\field

Code

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