public function ViewsPhp::validateOptionsForm in Views PHP 8
Same name in this branch
- 8 src/Plugin/views/access/ViewsPhp.php \Drupal\views_php\Plugin\views\access\ViewsPhp::validateOptionsForm()
- 8 src/Plugin/views/cache/ViewsPhp.php \Drupal\views_php\Plugin\views\cache\ViewsPhp::validateOptionsForm()
Validate the options form.
Overrides PluginBase::validateOptionsForm
File
- src/
Plugin/ views/ access/ ViewsPhp.php, line 69 - Definition of Drupal\views_php\Plugin\views\access\ViewsPhp.
Class
- ViewsPhp
- Access plugin that provides access based on PHP code.
Namespace
Drupal\views_php\Plugin\views\accessCode
public function validateOptionsForm(&$form, FormStateInterface $form_state) {
$options = $form_state
->getValue('options');
$form_state
->setValue('access_options', $options);
}