public function Attachment::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
File
- lib/
Drupal/ views/ Plugin/ views/ display/ Attachment.php, line 215 - Definition of Drupal\views\Plugin\views\display\Attachment.
Class
- Attachment
- The plugin that handles an attachment display.
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 'inherit_arguments':
case 'inherit_pager':
case 'render_pager':
case 'inherit_exposed_filters':
case 'attachment_position':
case 'displays':
$this
->setOption($form_state['section'], $form_state['values'][$form_state['section']]);
break;
}
}