You are here

protected function Node::blockDisplayOptions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/wizard/Node.php \Drupal\node\Plugin\views\wizard\Node::blockDisplayOptions()

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

Overrides WizardPluginBase::blockDisplayOptions

File

core/modules/node/src/Plugin/views/wizard/Node.php, line 161
Contains \Drupal\node\Plugin\views\wizard\Node.

Class

Node
Tests creating node views with the wizard.

Namespace

Drupal\node\Plugin\views\wizard

Code

protected function blockDisplayOptions(array $form, FormStateInterface $form_state) {
  $display_options = parent::blockDisplayOptions($form, $form_state);
  $row_plugin = $form_state
    ->getValue(array(
    'block',
    'style',
    'row_plugin',
  ));
  $row_options = $form_state
    ->getValue(array(
    'block',
    'style',
    'row_options',
  ), array());
  $this
    ->display_options_row($display_options, $row_plugin, $row_options);
  return $display_options;
}