protected function LingotekSettingsTabContentForm::retrieveBundles in Lingotek Translation 3.2.x
Same name and namespace in other branches
- 8 src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 8.2 src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 4.0.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.0.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.1.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.3.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.4.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.5.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.6.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.7.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
- 3.8.x src/Form/LingotekSettingsTabContentForm.php \Drupal\lingotek\Form\LingotekSettingsTabContentForm::retrieveBundles()
1 call to LingotekSettingsTabContentForm::retrieveBundles()
- LingotekSettingsTabContentForm::buildForm in src/
Form/ LingotekSettingsTabContentForm.php - Form constructor.
File
- src/
Form/ LingotekSettingsTabContentForm.php, line 268
Class
- LingotekSettingsTabContentForm
- Configure Lingotek
Namespace
Drupal\lingotek\FormCode
protected function retrieveBundles() {
$entities = \Drupal::entityTypeManager()
->getDefinitions();
$this->bundles = [];
foreach ($entities as $entity) {
if ($entity instanceof ContentEntityType && $entity
->hasKey('langcode')) {
$bundle = \Drupal::service('entity_type.bundle.info')
->getBundleInfo($entity
->id());
$this->bundles[$entity
->id()] = $bundle;
}
}
}