You are here

protected function NumericArgument::defineOptions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/NumericArgument.php \Drupal\views\Plugin\views\argument\NumericArgument::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides ArgumentPluginBase::defineOptions

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

File

core/modules/views/src/Plugin/views/argument/NumericArgument.php, line 30

Class

NumericArgument
Basic argument handler for arguments that are numeric. Incorporates break_phrase.

Namespace

Drupal\views\Plugin\views\argument

Code

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