function Fields::submitOptionsForm
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/row/Fields.php \Drupal\views\Plugin\views\row\Fields::submitOptionsForm()
- 10 core/modules/views/src/Plugin/views/row/Fields.php \Drupal\views\Plugin\views\row\Fields::submitOptionsForm()
- 11.x core/modules/views/src/Plugin/views/row/Fields.php \Drupal\views\Plugin\views\row\Fields::submitOptionsForm()
Perform any necessary changes to the form values prior to storage.
There is no need for this function to actually store the data.
Overrides RowPluginBase::submitOptionsForm
File
-
core/
modules/ views/ src/ Plugin/ views/ row/ Fields.php, line 100
Class
- Fields
- The basic 'fields' row plugin.
Namespace
Drupal\views\Plugin\views\rowCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
$inline = $form_state->getValue([
'row_options',
'inline',
]);
$form_state->setValue([
'row_options',
'inline',
], array_filter($inline));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.