Symbiote\AdvancedWorkflow\Templates\WorkflowTemplate::createGroups
Create a WorkflowDefinition->Groups relation based on template data, But only if the related groups from the export, can be foud in the target environment's DB.
Note: The template gives us a Group Title to work with rther than an ID as it's arguably more likely that Group titles will be the same between environments than their IDs.
Signature
protected function createGroups(array
$groups,
WorkflowDefinition
$definition,
[boolean
$clear = false] )
Parameters
$groups
— array$definition
— Symbiote\AdvancedWorkflow\DataObjects\WorkflowDefinition
$clear
— boolean
Returns
- void