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 ArgumentDefaultPluginBase::defineOptions
File
- lib/
Drupal/ views/ Plugin/ views/ argument_default/ Php.php, line 25 - Definition of Drupal\views\Plugin\views\argument_default\Php.
Class
- Php
- Default argument plugin to provide a PHP code block.
Namespace
Drupal\views\Plugin\views\argument_defaultCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['code'] = array(
'default' => '',
);
return $options;
}