Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NullArgument.php

function NullArgument::defineOptions

Overrides ArgumentPluginBase::defineOptions

File

core/modules/views/src/Plugin/views/argument/NullArgument.php, line 18

Class

NullArgument
Argument handler that ignores the argument.

Namespace

Drupal\views\Plugin\views\argument

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['must_not_be'] = [
        'default' => FALSE,
    ];
    return $options;
}
RSS feed
Powered by Drupal