protected function WizardPluginBase::default_display_filters

Retrieves all filter information used by the default display.

Additional to the one provided by the plugin this method takes care about adding additional filters based on user input.

Parameters

array $form: The full wizard form array.

array $form_state: The current state of the wizard form.

Return value

array An array of filter arrays keyed by ID. A sort array contains the options accepted by a filter handler.

1 call to WizardPluginBase::default_display_filters()
WizardPluginBase::build_display_options in drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
Builds an array of display options for the view.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php, line 792
Definition of Drupal\views\Plugin\views\wizard\WizardPluginBase.

Class

WizardPluginBase
Provides the interface and base class for Views Wizard plugins.

Namespace

Drupal\views\Plugin\views\wizard

Code

protected function default_display_filters($form, $form_state) {
  $filters = array();

  // Add any filters provided by the plugin.
  foreach ($this
    ->getFilters() as $name => $info) {
    $filters[$name] = $info;
  }

  // Add any filters specified by the user when filling out the wizard.
  $filters = array_merge($filters, $this
    ->default_display_filters_user($form, $form_state));
  return $filters;
}