You are here

protected function RoleExpireExpiryData::defineOptions in Role Expire 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/field/RoleExpireExpiryData.php \Drupal\role_expire\Plugin\views\field\RoleExpireExpiryData::defineOptions()

Define the available options.

Return value

array

Overrides PrerenderList::defineOptions

File

src/Plugin/views/field/RoleExpireExpiryData.php, line 90

Class

RoleExpireExpiryData
Field handler to display the role expire data.

Namespace

Drupal\role_expire\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['custom_date_format'] = [
    'default' => 'Y-m-d H:i',
  ];
  $options['timezone'] = [
    'default' => '',
  ];
  return $options;
}