public function ExampleNodeLabelFormatted::settingsForm in Extra Field Settings Provider 8
Same name and namespace in other branches
- 8.2 modules/extra_field_plus_example/src/Plugin/ExtraField/Display/ExampleNodeLabelFormatted.php \Drupal\extra_field_plus_example\Plugin\ExtraField\Display\ExampleNodeLabelFormatted::settingsForm()
Provides field settings form.
Return value
array The field settings form.
Overrides ExtraFieldPlusDisplayBase::settingsForm
File
- modules/
extra_field_plus_example/ src/ Plugin/ ExtraField/ Display/ ExampleNodeLabelFormatted.php, line 76
Class
- ExampleNodeLabelFormatted
- Example Node Label Extra field with formatted output.
Namespace
Drupal\extra_field_plus_example\Plugin\ExtraField\DisplayCode
public function settingsForm() {
$form = parent::settingsForm();
$form['link_to_entity'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Link to the entity'),
];
$form['wrapper'] = [
'#type' => 'select',
'#title' => $this
->t('Wrapper'),
'#options' => [
'span' => 'span',
'p' => 'p',
'h1' => 'h1',
'h2' => 'h2',
'h3' => 'h3',
'h4' => 'h4',
'h5' => 'h5',
],
];
return $form;
}