private function DefaultContentDeployCommands::getAvailableEntityTypes in Default Content Deploy 8
Convert the Available entity list to a readable form.
Return value
string
3 calls to DefaultContentDeployCommands::getAvailableEntityTypes()
- DefaultContentDeployCommands::contentDeployExport in src/
Commands/ DefaultContentDeployCommands.php - Exports a single entity or group of entities.
- DefaultContentDeployCommands::contentDeployExportWithReferences in src/
Commands/ DefaultContentDeployCommands.php - Exports a single entity with references.
- DefaultContentDeployCommands::contentEntityList in src/
Commands/ DefaultContentDeployCommands.php - List current content entity types.
File
- src/
Commands/ DefaultContentDeployCommands.php, line 416
Class
- DefaultContentDeployCommands
- Class DefaultContentDeployCommands.
Namespace
Drupal\default_content_deploy\CommandsCode
private function getAvailableEntityTypes() {
$function = function ($machine_name, $label) {
return sprintf("%s (%s)", $machine_name, $label);
};
$entity_types = $this->deployManager
->getContentEntityTypes();
$map = array_map($function, array_keys($entity_types), $entity_types);
return implode(PHP_EOL, $map);
}