You are here

protected function Php::defineOptions in PHP 8

Same name in this branch
  1. 8 src/Plugin/views/argument_default/Php.php \Drupal\php\Plugin\views\argument_default\Php::defineOptions()
  2. 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_validator

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['code'] = [
    'default' => '',
  ];
  return $options;
}