protected function MigrationDefinitionCreator::getDefinitions in GatherContent 8.5
Return the concatenated definitions created from the grouped data.
1 call to MigrationDefinitionCreator::getDefinitions()
- MigrationDefinitionCreator::getGroupedDefinitions in src/
MigrationDefinitionCreator.php - Return the concatenated definitions for the given template.
File
- src/
MigrationDefinitionCreator.php, line 201
Class
- MigrationDefinitionCreator
- Create dynamic migration definitions.
Namespace
Drupal\gathercontentCode
protected function getDefinitions(array $groupedData) {
$definitions = [];
foreach ($groupedData as $data) {
$definition = $this
->buildMigrationDefinition([
'projectId' => $this->mapping
->getGathercontentProjectId(),
'templateId' => $this->mapping
->getGathercontentTemplateId(),
'entityType' => $this->mapping
->getMappedEntityType(),
'contentType' => $this->mapping
->getContentType(),
], $data['data'], 'gc_entity');
$definitions[$definition['id']] = $definition;
}
return $definitions;
}