32 $result = [$this->implementerName => []];
34 foreach ($containerCollection as $container)
36 $workflowTemplateId = $container->getEntityId();
38 $fields = $this->implementer->getFields($workflowTemplateId);
40 $fields = $this->implementer->prepareFieldsToCopy($fields);
42 $copiedWorkflowTemplateId = $this->implementer->add($fields);
44 $result[$this->implementerName][$workflowTemplateId] = $copiedWorkflowTemplateId;
47 $this->result->setData($result);