public function MetaTagDownloadForm::getBundles in Metatag Import Export CSV 8
Returns bundles.
2 calls to MetaTagDownloadForm::getBundles()
- MetaTagDownloadForm::buildForm in src/
Form/ MetaTagDownloadForm.php - Form constructor.
- MetaTagDownloadForm::getBundlesList in src/
Form/ MetaTagDownloadForm.php - Ajax callback for entity type field.
File
- src/
Form/ MetaTagDownloadForm.php, line 109
Class
- MetaTagDownloadForm
- Defines a form that configures forms module settings.
Namespace
Drupal\metatag_import_export_csv\FormCode
public function getBundles($entity_type_id) {
$bundles = [];
$bundleList = \Drupal::service('entity_type.bundle.info')
->getBundleInfo($entity_type_id);
foreach ($bundleList as $keys => $values) {
$bundles[$keys] = (string) $values['label'];
}
return $bundles;
}