You are here

protected function ViewsDelimitedListStyle::defineOptions in Views Delimited List 2.x

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

File

src/Plugin/views/style/ViewsDelimitedListStyle.php, line 36

Class

ViewsDelimitedListStyle
Delimited list display style.

Namespace

Drupal\views_delimited_list\Plugin\views\style

Code

protected function defineOptions() : array {
  $options = parent::defineOptions();
  $options['delimiter'] = [
    'default' => ', ',
  ];
  $options['conjunctive'] = [
    'default' => ' and ',
  ];
  $options['long_count'] = [
    'default' => 3,
  ];
  $options['separator_two'] = [
    'default' => 'conjunctive',
  ];
  $options['separator_long'] = [
    'default' => 'both',
  ];
  $options['prefix'] = [
    'default' => '',
  ];
  $options['suffix'] = [
    'default' => '',
  ];
  return $options;
}