You are here

protected 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 ArgumentPluginBase::defineOptions

File

src/Plugin/views/argument/Standard.php, line 37
Contains \Drupal\views_xml_backend\Plugin\views\argument\Standard.

Class

Standard
Default implementation of the base argument plugin.

Namespace

Drupal\views_xml_backend\Plugin\views\argument

Code

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