function DefaultSummary::defineOptions

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::defineOptions()
  2. 8.9.x core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::defineOptions()
  3. 10 core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::defineOptions()

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 23

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.