protected function HeadingItem::getSizes in Heading field 8
Get all possible sizes.
Return value
array The heading size labels keyed by their size (h1-h6).
1 call to HeadingItem::getSizes()
- 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 127
Class
- HeadingItem
- Provides a field type "heading" containing a heading type and text.
Namespace
Drupal\heading\Plugin\Field\FieldTypeCode
protected function getSizes() {
return [
'h1' => $this
->t('Heading 1'),
'h2' => $this
->t('Heading 2'),
'h3' => $this
->t('Heading 3'),
'h4' => $this
->t('Heading 4'),
'h5' => $this
->t('Heading 5'),
'h6' => $this
->t('Heading 6'),
];
}