protected function Ingredient::blockDisplayOptions in Recipe 8.2
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
- modules/
ingredient/ src/ Plugin/ views/ wizard/ Ingredient.php, line 103
Class
- Ingredient
- Wizard plugin for creating Ingredient views.
Namespace
Drupal\ingredient\Plugin\views\wizardCode
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;
}