function AggregatorTitleFormatter::settingsForm
Same name in other branches
- 8.9.x core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php \Drupal\aggregator\Plugin\Field\FieldFormatter\AggregatorTitleFormatter::settingsForm()
Overrides FormatterBase::settingsForm
File
-
core/
modules/ aggregator/ src/ Plugin/ Field/ FieldFormatter/ AggregatorTitleFormatter.php, line 38
Class
- AggregatorTitleFormatter
- Plugin implementation of the 'aggregator_title' formatter.
Namespace
Drupal\aggregator\Plugin\Field\FieldFormatterCode
public function settingsForm(array $form, FormStateInterface $form_state) {
$form = parent::settingsForm($form, $form_state);
$form['display_as_link'] = [
'#type' => 'checkbox',
'#title' => $this->t('Link to URL'),
'#default_value' => $this->getSetting('display_as_link'),
];
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.