protected function WizardPluginBase::defaultDisplayFilters

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::defaultDisplayFilters()
WizardPluginBase::buildDisplayOptions 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 799
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 defaultDisplayFilters($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
    ->defaultDisplayFiltersUser($form, $form_state));
  return $filters;
}