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