function TelephoneLinkFormatter::settingsForm
Same name in other branches
- 8.9.x core/modules/telephone/src/Plugin/Field/FieldFormatter/TelephoneLinkFormatter.php \Drupal\telephone\Plugin\Field\FieldFormatter\TelephoneLinkFormatter::settingsForm()
- 10 core/modules/telephone/src/Plugin/Field/FieldFormatter/TelephoneLinkFormatter.php \Drupal\telephone\Plugin\Field\FieldFormatter\TelephoneLinkFormatter::settingsForm()
- 11.x core/modules/telephone/src/Plugin/Field/FieldFormatter/TelephoneLinkFormatter.php \Drupal\telephone\Plugin\Field\FieldFormatter\TelephoneLinkFormatter::settingsForm()
Overrides FormatterBase::settingsForm
File
-
core/
modules/ telephone/ src/ Plugin/ Field/ FieldFormatter/ TelephoneLinkFormatter.php, line 35
Class
- TelephoneLinkFormatter
- Plugin implementation of the 'telephone_link' formatter.
Namespace
Drupal\telephone\Plugin\Field\FieldFormatterCode
public function settingsForm(array $form, FormStateInterface $form_state) {
$elements['title'] = [
'#type' => 'textfield',
'#title' => $this->t('Title to replace basic numeric telephone number display'),
'#default_value' => $this->getSetting('title'),
];
return $elements;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.