You are here

protected function XmlFieldHelperTrait::getDefaultXmlOptions in Views XML Backend 8

Returns the default options for XML fields.

Return value

array The default options array.

2 calls to XmlFieldHelperTrait::getDefaultXmlOptions()
Date::defineOptions in src/Plugin/views/field/Date.php
Information about options for all kinds of purposes will be held here.
Standard::defineOptions in src/Plugin/views/field/Standard.php
Information about options for all kinds of purposes will be held here.

File

src/Plugin/views/field/XmlFieldHelperTrait.php, line 40
Contains \Drupal\views_xml_backend\Plugin\views\field\XmlFieldHelperTrait.

Class

XmlFieldHelperTrait
A handler to provide an XML text field.

Namespace

Drupal\views_xml_backend\Plugin\views\field

Code

protected function getDefaultXmlOptions() {
  $options = [];
  $options['xpath_selector']['default'] = '';
  $options['type']['default'] = 'separator';
  $options['separator']['default'] = ', ';
  return $options;
}