예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function submitOptionsForm(&$form, FormStateInterface $form_state)
 {
     parent::submitOptionsForm($form, $form_state);
     switch ($form_state->get('section')) {
         case 'test_extender_test_option':
             $this->options['test_extender_test_option'] = $form_state->getValue('test_extender_test_option');
             break;
     }
 }
예제 #2
0
 /**
  * Overrides Drupal\views\Plugin\views\display\DisplayExtenderPluginBase::submitOptionsForm().
  */
 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;
     }
 }