public function RoleExpireRid::__construct 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::__construct()
Constructs a \Drupal\user\Plugin\views\field\Roles object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\role_expire\RoleExpireApiService $role_expire_api: Role expire API service.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ field/ RoleExpireRid.php, line 41
Class
- RoleExpireRid
- Field handler to display the role expire data.
Namespace
Drupal\role_expire\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RoleExpireApiService $role_expire_api) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->roleExpireApi = $role_expire_api;
}