You are here

public static function TaxonomyTermReferenceCsv::defaultSettings in Taxonomy Formatter 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/TaxonomyTermReferenceCsv.php, line 30
Contains \Drupal\taxonomy_formatter\Plugin\Field\FieldFormatter\TaxonomyTermReferenceCsv.

Class

TaxonomyTermReferenceCsv
Plugin annotation @FieldFormatter( id = "taxonomy_term_reference_csv", label = @Translation("Delimited"), field_types = { "entity_reference" } )

Namespace

Drupal\taxonomy_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'links_option' => FALSE,
    'separator_option' => ', ',
    'element_option' => '- None -',
    'wrapper_option' => '- None -',
    'element_class' => '',
    'wrapper_class' => '',
  ] + parent::defaultSettings();
}