function DefaultSummary::defineOptions

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::defineOptions()

File

core/modules/views/src/Plugin/views/style/DefaultSummary.php, line 22

Class

DefaultSummary
The default style plugin for summaries.

Namespace

Drupal\views\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['base_path'] = [
    'default' => '',
  ];
  $options['count'] = [
    'default' => TRUE,
  ];
  $options['override'] = [
    'default' => FALSE,
  ];
  $options['items_per_page'] = [
    'default' => 25,
  ];
  return $options;
}

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