protected function WizardPluginBase::page_feed_display_options in Views (for Drupal 7) 8.3
Retrieves the feed display options.
Parameters
array $form: The full wizard form array.
array $form_state: The current state of the wizard form.
Return value
array Returns an array of display options.
1 call to WizardPluginBase::page_feed_display_options()
- WizardPluginBase::build_display_options in lib/
Drupal/ views/ Plugin/ views/ wizard/ WizardPluginBase.php - Builds an array of display options for the view.
File
- lib/
Drupal/ views/ Plugin/ views/ wizard/ WizardPluginBase.php, line 940 - 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\wizardCode
protected function page_feed_display_options($form, $form_state) {
$display_options = array();
$display_options['pager']['type'] = 'some';
$display_options['style'] = array(
'type' => 'rss',
);
$display_options['row'] = array(
'type' => $form_state['values']['page']['feed_properties']['row_plugin'],
);
$display_options['path'] = $form_state['values']['page']['feed_properties']['path'];
$display_options['title'] = $form_state['values']['page']['title'];
$display_options['displays'] = array(
'default' => 'default',
'page_1' => 'page_1',
);
return $display_options;
}