You are here

protected function CalendarHeader::defineOptions in Calendar 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/area/CalendarHeader.php \Drupal\calendar\Plugin\views\area\CalendarHeader::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 TokenizeAreaPluginBase::defineOptions

File

src/Plugin/views/area/CalendarHeader.php, line 21

Class

CalendarHeader
Views area Calendar Header area.

Namespace

Drupal\calendar\Plugin\views\area

Code

protected function defineOptions() {
  $options = parent::defineOptions();

  // Override defaults to from parent.
  $options['tokenize']['default'] = TRUE;
  $options['empty']['default'] = TRUE;

  // Provide our own defaults.
  $options['content'] = [
    'default' => '',
  ];
  $options['pager_embed'] = [
    'default' => FALSE,
  ];
  return $options;
}