public function MappingStepService::getNewStep in GatherContent 8.5
Same name and namespace in other branches
- 8.4 gathercontent_ui/src/Form/MappingEditSteps/MappingStepService.php \Drupal\gathercontent_ui\Form\MappingEditSteps\MappingStepService::getNewStep()
Returns new step object.
Parameters
\Drupal\gathercontent\Entity\MappingInterface $mapping: Mapping object.
array $template: Template array.
Return value
\Drupal\gathercontent_ui\Form\MappingEditSteps\MappingStepNew MappingStepNew object.
File
- gathercontent_ui/
src/ Form/ MappingEditSteps/ MappingStepService.php, line 46
Class
- MappingStepService
- Class MappingStepFactory.
Namespace
Drupal\gathercontent_ui\Form\MappingEditStepsCode
public function getNewStep(MappingInterface $mapping, array $template) {
if ($this->newStep === NULL) {
$this->newStep = new MappingStepNew($mapping, $template);
}
return $this->newStep;
}