protected function Php::defineOptions in PHP 8
Same name in this branch
- 8 src/Plugin/views/argument_default/Php.php \Drupal\php\Plugin\views\argument_default\Php::defineOptions()
- 8 src/Plugin/views/argument_validator/Php.php \Drupal\php\Plugin\views\argument_validator\Php::defineOptions()
Retrieves the options when this is a new access control plugin.
Overrides ArgumentValidatorPluginBase::defineOptions
File
- src/
Plugin/ views/ argument_validator/ Php.php, line 22
Class
- Php
- Provide PHP code to validate whether or not an argument is ok.
Namespace
Drupal\php\Plugin\views\argument_validatorCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['code'] = [
'default' => '',
];
return $options;
}