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

Breadcrumb

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

function StringArgument::defineOptions

Overrides ArgumentPluginBase::defineOptions

2 calls to StringArgument::defineOptions()
StringListField::defineOptions in core/modules/options/src/Plugin/views/argument/StringListField.php
Information about options for all kinds of purposes will be held here.
StringListField::defineOptions in core/modules/options/src/Plugin/views/argument/StringListField.php
Information about options for all kinds of purposes will be held here.
1 method overrides StringArgument::defineOptions()
StringListField::defineOptions in core/modules/options/src/Plugin/views/argument/StringListField.php
Information about options for all kinds of purposes will be held here.

File

core/modules/views/src/Plugin/views/argument/StringArgument.php, line 46

Class

StringArgument
Argument handler for string.

Namespace

Drupal\views\Plugin\views\argument

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['glossary'] = [
        'default' => FALSE,
    ];
    $options['limit'] = [
        'default' => 0,
    ];
    $options['case'] = [
        'default' => 'none',
    ];
    $options['path_case'] = [
        'default' => 'none',
    ];
    $options['transform_dash'] = [
        'default' => FALSE,
    ];
    $options['break_phrase'] = [
        'default' => FALSE,
    ];
    if (!empty($this->definition['many to one'])) {
        $options['add_table'] = [
            'default' => FALSE,
        ];
        $options['require_value'] = [
            'default' => FALSE,
        ];
    }
    return $options;
}
RSS feed
Powered by Drupal