function BooleanItem::defaultFieldSettings
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem::defaultFieldSettings()
- 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem::defaultFieldSettings()
- 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem::defaultFieldSettings()
Overrides FieldItemBase::defaultFieldSettings
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ BooleanItem.php, line 30
Class
- BooleanItem
- Defines the 'boolean' entity field type.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return [
'on_label' => new TranslatableMarkup('On'),
'off_label' => new TranslatableMarkup('Off'),
] + parent::defaultFieldSettings();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.