protected function Node::pageDisplayOptions

Retrieves the page 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.

Overrides WizardPluginBase::pageDisplayOptions

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php, line 197
Definition of Drupal\node\Plugin\views\wizard\Node.

Class

Node
Tests creating node views with the wizard.

Namespace

Drupal\node\Plugin\views\wizard

Code

protected function pageDisplayOptions(array $form, array &$form_state) {
  $display_options = parent::pageDisplayOptions($form, $form_state);
  $row_plugin = isset($form_state['values']['page']['style']['row_plugin']) ? $form_state['values']['page']['style']['row_plugin'] : NULL;
  $row_options = isset($form_state['values']['page']['style']['row_options']) ? $form_state['values']['page']['style']['row_options'] : array();
  $this
    ->display_options_row($display_options, $row_plugin, $row_options);
  return $display_options;
}