public function RoleExpireRid::init in Role Expire 8
Same name and namespace in other branches
- 2.x src/Plugin/views/field/RoleExpireRid.php \Drupal\role_expire\Plugin\views\field\RoleExpireRid::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/ RoleExpireRid.php, line 62
Class
- RoleExpireRid
- Field handler to display the role expire data.
Namespace
Drupal\role_expire\Plugin\views\fieldCode
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',
];
}