You are here

public function ExampleNodeLabelFormatted::defaultFormValues in Extra Field Settings Provider 8

Same name and namespace in other branches
  1. 8.2 modules/extra_field_plus_example/src/Plugin/ExtraField/Display/ExampleNodeLabelFormatted.php \Drupal\extra_field_plus_example\Plugin\ExtraField\Display\ExampleNodeLabelFormatted::defaultFormValues()

Provides field settings form default values.

Return value

array The form values.

Overrides ExtraFieldPlusDisplayBase::defaultFormValues

File

modules/extra_field_plus_example/src/Plugin/ExtraField/Display/ExampleNodeLabelFormatted.php, line 104

Class

ExampleNodeLabelFormatted
Example Node Label Extra field with formatted output.

Namespace

Drupal\extra_field_plus_example\Plugin\ExtraField\Display

Code

public function defaultFormValues() {
  $values = parent::defaultFormValues();
  $values += [
    'link_to_entity' => FALSE,
    'wrapper' => 'span',
  ];
  return $values;
}