You are here

public function ExampleNodeLabel::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/ExampleNodeLabel.php \Drupal\extra_field_plus_example\Plugin\ExtraField\Display\ExampleNodeLabel::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/ExampleNodeLabel.php, line 90

Class

ExampleNodeLabel
Example Extra field Display.

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;
}