private function ExportForm::getBundlesByEntityTypeId in Default Content Deploy 8
Helper for getting all bundles list of Entity type id.
Parameters
$entity_type_id:
Return value
array|false
1 call to ExportForm::getBundlesByEntityTypeId()
- ExportForm::processingEntityType in src/
Form/ ExportForm.php - Ajax callback for Entity type form element.
File
- src/
Form/ ExportForm.php, line 324
Class
- ExportForm
- Config Form for run DCD deploy in Admin UI.
Namespace
Drupal\default_content_deploy\FormCode
private function getBundlesByEntityTypeId($entity_type_id) {
$bundles[''] = $this
->t('- None -');
$list = $this->bundleInfo
->getBundleInfo($entity_type_id);
$bundles += array_combine(array_keys($list), array_column($list, 'label'));
return $bundles;
}