protected function Php::defineOptions

Same name in this branch
  1. 8.x drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.php \Drupal\views\Plugin\views\argument_validator\Php::defineOptions()
  2. 8.x drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Php.php \Drupal\views\Plugin\views\argument_default\Php::defineOptions()

Retrieve the options when this is a new access control plugin

Overrides ArgumentDefaultPluginBase::defineOptions

File

drupal/core/modules/views/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_default

Code

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