public function RoleExpireDate::__construct in Role Expire 8
Same name and namespace in other branches
- 2.x src/Plugin/views/field/RoleExpireDate.php \Drupal\role_expire\Plugin\views\field\RoleExpireDate::__construct()
Constructs a new Date 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\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Entity\EntityStorageInterface $date_format_storage: The date format storage.
\Drupal\role_expire\RoleExpireApiService $role_expire_api: Role expire API service.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ field/ RoleExpireDate.php, line 63
Class
- RoleExpireDate
- Field handler to display the role expire date.
Namespace
Drupal\role_expire\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $date_formatter, EntityStorageInterface $date_format_storage, RoleExpireApiService $role_expire_api) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->dateFormatter = $date_formatter;
$this->dateFormatStorage = $date_format_storage;
$this->roleExpireApi = $role_expire_api;
}