public function PathPluginBase::submitOptionsForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::submitOptionsForm()
- 9 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::submitOptionsForm()
Performs any necessary changes to the form values prior to storage.
There is no need for this function to actually store the data.
Overrides DisplayPluginInterface::submitOptionsForm
2 calls to PathPluginBase::submitOptionsForm()
- Feed::submitOptionsForm in core/
modules/ views/ src/ Plugin/ views/ display/ Feed.php - Performs any necessary changes to the form values prior to storage.
- Page::submitOptionsForm in core/
modules/ views/ src/ Plugin/ views/ display/ Page.php - Performs any necessary changes to the form values prior to storage.
3 methods override PathPluginBase::submitOptionsForm()
- Feed::submitOptionsForm in core/
modules/ views/ src/ Plugin/ views/ display/ Feed.php - Performs any necessary changes to the form values prior to storage.
- Page::submitOptionsForm in core/
modules/ views/ src/ Plugin/ views/ display/ Page.php - Performs any necessary changes to the form values prior to storage.
- RestExport::submitOptionsForm in core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php - Performs any necessary changes to the form values prior to storage.
File
- core/
modules/ views/ src/ Plugin/ views/ display/ PathPluginBase.php, line 476
Class
- PathPluginBase
- The base display plugin for path/callbacks. This is used for pages and feeds.
Namespace
Drupal\views\Plugin\views\displayCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
parent::submitOptionsForm($form, $form_state);
if ($form_state
->get('section') == 'path') {
$this
->setOption('path', $form_state
->getValue('path'));
}
}