You are here

protected function DefaultSummary::defineOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::defineOptions()
  2. 10 core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::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 StylePluginBase::defineOptions

1 call to DefaultSummary::defineOptions()
UnformattedSummary::defineOptions in core/modules/views/src/Plugin/views/style/UnformattedSummary.php
Information about options for all kinds of purposes will be held here.
1 method overrides DefaultSummary::defineOptions()
UnformattedSummary::defineOptions in core/modules/views/src/Plugin/views/style/UnformattedSummary.php
Information about options for all kinds of purposes will be held here.

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;
}