You are here

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

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

Overrides DisplayExtenderPluginBase::submitOptionsForm

File

tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/display_extender/DisplayExtenderTest.php, line 81
Definition of Drupal\views_test_data\Plugin\views\display_extender\DisplayExtenderTest.

Class

DisplayExtenderTest
Defines a display extender test plugin.

Namespace

Drupal\views_test_data\Plugin\views\display_extender

Code

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