public function Page::submitOptionsForm in Views (for Drupal 7) 8.3
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
Overrides DisplayPluginBase::submitOptionsForm
1 call to Page::submitOptionsForm()
- Feed::submitOptionsForm in lib/
Drupal/ views/ Plugin/ views/ display/ Feed.php - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
1 method overrides Page::submitOptionsForm()
- Feed::submitOptionsForm in lib/
Drupal/ views/ Plugin/ views/ display/ Feed.php - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
File
- lib/
Drupal/ views/ Plugin/ views/ display/ Page.php, line 601 - Definition of Drupal\views\Plugin\views\display\Page.
Class
- Page
- The plugin that handles a full page.
Namespace
Drupal\views\Plugin\views\displayCode
public function submitOptionsForm(&$form, &$form_state) {
// It is very important to call the parent function here:
parent::submitOptionsForm($form, $form_state);
switch ($form_state['section']) {
case 'path':
$this
->setOption('path', $form_state['values']['path']);
break;
case 'menu':
$this
->setOption('menu', $form_state['values']['menu']);
// send ajax form to options page if we use it.
if ($form_state['values']['menu']['type'] == 'default tab') {
$this->view
->addFormToStack('display', $this->display['id'], array(
'tab_options',
));
}
break;
case 'tab_options':
$this
->setOption('tab_options', $form_state['values']['tab_options']);
break;
}
}