public function MetaTagDownloadForm::getTags in Metatag Import Export CSV 8
Returns tags supported by metatag module.
1 call to MetaTagDownloadForm::getTags()
- MetaTagDownloadForm::buildForm in src/
Form/ MetaTagDownloadForm.php - Form constructor.
File
- src/
Form/ MetaTagDownloadForm.php, line 121
Class
- MetaTagDownloadForm
- Defines a form that configures forms module settings.
Namespace
Drupal\metatag_import_export_csv\FormCode
public function getTags() {
$tagList = [];
$metatag_manager = \Drupal::service('metatag.manager');
$tagGroupList = $metatag_manager
->sortedGroupsWithTags();
foreach ($tagGroupList as $keys => $values) {
$tagList[$keys] = $values['tags'];
foreach ($values['tags'] as $tkeys => $tvalues) {
$tagList[$keys][$tkeys] = $tvalues['label'];
}
}
return $tagList;
}