public function MappingCreator::getProjectName in GatherContent 8.5
Returns the name of a given project.
Parameters
string $projectId:
Return value
string
1 call to MappingCreator::getProjectName()
- MappingCreator::generateMapping in gathercontent_upload/
src/ Export/ MappingCreator.php - Generates template, mapping and migration definition for given entity type and bundle.
File
- gathercontent_upload/
src/ Export/ MappingCreator.php, line 478
Class
- MappingCreator
- Class for handling import/update logic from GatherContent to Drupal.
Namespace
Drupal\gathercontent_upload\ExportCode
public function getProjectName(string $projectId) {
if (empty($projectId)) {
return '';
}
$project = $this->client
->projectGet($projectId);
if (empty($project)) {
return '';
}
return $project->name;
}