protected function WizardPluginBase::alter_display_options

Alters the full array of display options before they are added to the view.

1 call to WizardPluginBase::alter_display_options()
WizardPluginBase::instantiate_view in drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
Instantiates a view object from form values.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php, line 688
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 alter_display_options(&$display_options, $form, $form_state) {
  foreach ($display_options as $display_type => $options) {

    // Allow style plugins to hook in and provide some settings.
    $style_plugin = drupal_container()
      ->get("plugin.manager.views.style")
      ->createInstance($options['style']['type']);
    $style_plugin
      ->wizard_submit($form, $form_state, $this, $display_options, $display_type);
  }
}