public static function HeadingItem::defaultFieldSettings in Heading field 8
Defines the field-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FieldItemBase::defaultFieldSettings
1 call to HeadingItem::defaultFieldSettings()
- HeadingItem::fieldSettingsForm in src/
Plugin/ Field/ FieldType/ HeadingItem.php - Returns a form for the field-level settings.
File
- src/
Plugin/ Field/ FieldType/ HeadingItem.php, line 80
Class
- HeadingItem
- Provides a field type "heading" containing a heading type and text.
Namespace
Drupal\heading\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
$settings = [
'label' => 'Heading',
'allowed_sizes' => [
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
],
];
return $settings + parent::defaultFieldSettings();
}