You are here

public function Standard::defineOptions in Views XML Backend 8

Same name in this branch
  1. 8 src/Plugin/views/filter/Standard.php \Drupal\views_xml_backend\Plugin\views\filter\Standard::defineOptions()
  2. 8 src/Plugin/views/sort/Standard.php \Drupal\views_xml_backend\Plugin\views\sort\Standard::defineOptions()
  3. 8 src/Plugin/views/argument/Standard.php \Drupal\views_xml_backend\Plugin\views\argument\Standard::defineOptions()
  4. 8 src/Plugin/views/field/Standard.php \Drupal\views_xml_backend\Plugin\views\field\Standard::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 StringFilter::defineOptions

File

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

Class

Standard
Default implementation of the base filter plugin.

Namespace

Drupal\views_xml_backend\Plugin\views\filter

Code

public function defineOptions() {
  $options = parent::defineOptions();

  // @todo Add case sensitive option.
  $options['case']['default'] = TRUE;
  $options['xpath_selector']['default'] = '';
  return $options;
}