function HandlerBase::defineOptions

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::defineOptions()
  2. 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::defineOptions()
  3. 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::defineOptions()

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 140

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['id'] = [
    'default' => '',
  ];
  $options['table'] = [
    'default' => '',
  ];
  $options['field'] = [
    'default' => '',
  ];
  $options['relationship'] = [
    'default' => 'none',
  ];
  $options['group_type'] = [
    'default' => 'group',
  ];
  $options['admin_label'] = [
    'default' => '',
  ];
  return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.