Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Fields.php

function 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 101

Class

Fields
The basic 'fields' row plugin.

Namespace

Drupal\views\Plugin\views\row

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state) {
    $inline = $form_state->getValue([
        'row_options',
        'inline',
    ]);
    $form_state->setValue([
        'row_options',
        'inline',
    ], array_filter($inline));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal