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()

Retrieve the options when this is a new access control plugin

Overrides ArgumentDefaultPluginBase::defineOptions

File

src/Plugin/views/argument_default/Php.php, line 22

Class

Php
Default argument plugin to provide a PHP code block.

Namespace

Drupal\php\Plugin\views\argument_default

Code

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