protected function RoleExpireDate::defineOptions 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::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides PrerenderList::defineOptions
File
- src/
Plugin/ views/ field/ RoleExpireDate.php, line 105
Class
- RoleExpireDate
- Field handler to display the role expire date.
Namespace
Drupal\role_expire\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['date_format'] = [
'default' => 'small',
];
$options['custom_date_format'] = [
'default' => 'Y-m-d H:i',
];
$options['timezone'] = [
'default' => '',
];
return $options;
}