public function TagManager::getTagOptions in Fences 8.2
Get the tags that can wrap fields.
Return value
array An array of tags.
Overrides TagManagerInterface::getTagOptions
File
- src/
TagManager.php, line 61
Class
- TagManager
- Gathers and provides the tags that can be used to wrap fields.
Namespace
Drupal\fencesCode
public function getTagOptions() {
$options = [
TagManagerInterface::NO_MARKUP_VALUE => $this
->t('None (No wrapping HTML)'),
];
foreach ($this
->getDefinitions() as $id => $definition) {
$options[$definition['group']][$id] = t('@label (@tag)', [
'@label' => $definition['label'],
'@tag' => $id,
]);
}
return $options;
}