function Node::blockDisplayOptions

Same name in other branches
  1. 9 core/modules/node/src/Plugin/views/wizard/Node.php \Drupal\node\Plugin\views\wizard\Node::blockDisplayOptions()
  2. 10 core/modules/node/src/Plugin/views/wizard/Node.php \Drupal\node\Plugin\views\wizard\Node::blockDisplayOptions()
  3. 11.x core/modules/node/src/Plugin/views/wizard/Node.php \Drupal\node\Plugin\views\wizard\Node::blockDisplayOptions()

Overrides WizardPluginBase::blockDisplayOptions

File

core/modules/node/src/Plugin/views/wizard/Node.php, line 208

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([
        'block',
        'style',
        'row_plugin',
    ]);
    $row_options = $form_state->getValue([
        'block',
        'style',
        'row_options',
    ], []);
    $this->display_options_row($display_options, $row_plugin, $row_options);
    return $display_options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.