You are here

public function DisplayTest::submitOptionsForm in Views (for Drupal 7) 8.3

Overrides Drupal\views\Plugin\views\display\DisplayPluginBase::submitOptionsForm().

Overrides DisplayPluginBase::submitOptionsForm

File

tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/display/DisplayTest.php, line 102
Definition of Drupal\views_test_data\Plugin\views\display\DisplayTest.

Class

DisplayTest
Defines a Display test plugin.

Namespace

Drupal\views_test_data\Plugin\views\display

Code

public function submitOptionsForm(&$form, &$form_state) {
  parent::submitOptionsForm($form, $form_state);
  switch ($form_state['section']) {
    case 'test_option':
      $this
        ->setOption('test_option', $form_state['values']['test_option']);
      break;
  }
}