You are here

public function Numeric::defineOptions in Views XML Backend 8

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 NumericFilter::defineOptions

File

src/Plugin/views/filter/Numeric.php, line 36
Contains \Drupal\views_xml_backend\Plugin\views\filter\Numeric.

Class

Numeric
Default implementation of the base filter plugin.

Namespace

Drupal\views_xml_backend\Plugin\views\filter

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['xpath_selector']['default'] = '';
  return $options;
}