You are here

protected function WizardPluginBase::pageFeedDisplayOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php \Drupal\views\Plugin\views\wizard\WizardPluginBase::pageFeedDisplayOptions()
  2. 9 core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php \Drupal\views\Plugin\views\wizard\WizardPluginBase::pageFeedDisplayOptions()

Retrieves the feed display options.

Parameters

array $form: The full wizard form array.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the wizard form.

Return value

array Returns an array of display options.

1 call to WizardPluginBase::pageFeedDisplayOptions()
WizardPluginBase::buildDisplayOptions in core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
Builds an array of display options for the view.

File

core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php, line 1153

Class

WizardPluginBase
Base class for Views wizard plugins.

Namespace

Drupal\views\Plugin\views\wizard

Code

protected function pageFeedDisplayOptions($form, FormStateInterface $form_state) {
  $display_options = [];
  $display_options['pager']['type'] = 'some';
  $display_options['style'] = [
    'type' => 'rss',
  ];
  $display_options['row'] = [
    'type' => $form_state
      ->getValue([
      'page',
      'feed_properties',
      'row_plugin',
    ]),
  ];
  $display_options['path'] = $form_state
    ->getValue([
    'page',
    'feed_properties',
    'path',
  ]);
  $display_options['title'] = $form_state
    ->getValue([
    'page',
    'title',
  ]);
  $display_options['displays'] = [
    'default' => 'default',
    'page_1' => 'page_1',
  ];
  return $display_options;
}