protected function LingotekManagementForm::getAllBundles in Lingotek Translation 8
Gets alls the bundles as options.
Return value
array The bundles as a valid options array.
1 call to LingotekManagementForm::getAllBundles()
- LingotekManagementForm::buildForm in src/
Form/ LingotekManagementForm.php - Form constructor.
File
- src/
Form/ LingotekManagementForm.php, line 1145 - Contains \Drupal\Lingotek\Form\LingotekManagementForm.
Class
- LingotekManagementForm
- Form for bulk management of content.
Namespace
Drupal\lingotek\FormCode
protected function getAllBundles() {
$bundles = $this->entityManager
->getBundleInfo($this->entityTypeId);
$options = [];
foreach ($bundles as $id => $bundle) {
$options[$id] = $bundle['label'];
}
return $options;
}