function EmailDefaultWidget::settingsSummary
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EmailDefaultWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\EmailDefaultWidget::settingsSummary()
- 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EmailDefaultWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\EmailDefaultWidget::settingsSummary()
- 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EmailDefaultWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\EmailDefaultWidget::settingsSummary()
Overrides WidgetBase::settingsSummary
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldWidget/ EmailDefaultWidget.php, line 56
Class
- EmailDefaultWidget
- Plugin implementation of the 'email_default' widget.
Namespace
Drupal\Core\Field\Plugin\Field\FieldWidgetCode
public function settingsSummary() {
$summary = [];
$placeholder = $this->getSetting('placeholder');
if (!empty($placeholder)) {
$summary[] = t('Placeholder: @placeholder', [
'@placeholder' => $placeholder,
]);
}
else {
$summary[] = t('No placeholder');
}
$summary[] = t('Textfield size: @size', [
'@size' => $this->getSetting('size'),
]);
return $summary;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.