public function RoleExpireExpiryData::__construct in Role Expire 8
Same name and namespace in other branches
- 2.x src/Plugin/views/field/RoleExpireExpiryData.php \Drupal\role_expire\Plugin\views\field\RoleExpireExpiryData::__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/ RoleExpireExpiryData.php, line 48
Class
- RoleExpireExpiryData
- Field handler to display the role expire data.
Namespace
Drupal\role_expire\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $date_formatter, RoleExpireApiService $role_expire_api) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->dateFormatter = $date_formatter;
$this->roleExpireApi = $role_expire_api;
}