public function ListFormatter::wrapperOptions in Text list formatter 8.2
Helper method return an array of html tags; formatted for a select list.
Return value
array A keyed array of available html tags.
1 call to ListFormatter::wrapperOptions()
- ListFormatter::settingsForm in lib/
Drupal/ textformatter/ Plugin/ field/ formatter/ ListFormatter.php - Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().
File
- lib/
Drupal/ textformatter/ Plugin/ field/ formatter/ ListFormatter.php, line 341 - Definition of Drupal\textformatter\Plugin\field\formatter\List;
Class
- ListFormatter
- Plugin implementation of the 'text_default' formatter.
Namespace
Drupal\textformatter\Plugin\field\formatterCode
public function wrapperOptions() {
return array(
t('No HTML tag'),
'div' => t('Div'),
'span' => t('Span'),
'p' => t('Paragraph'),
'h1' => t('Header 1'),
'h2' => t('Header 2'),
'h3' => t('Header 3'),
'h4' => t('Header 4'),
'h5' => t('Header 5'),
'h6' => t('Header 6'),
);
}