public function MappingStepService::getNewStep in GatherContent 8.4
Same name and namespace in other branches
- 8.5 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.
\Cheppers\GatherContent\DataTypes\Template $template: Template object.
Return value
\Drupal\gathercontent_ui\Form\MappingEditSteps\MappingStepNew MappingStepNew object.
File
- gathercontent_ui/
src/ Form/ MappingEditSteps/ MappingStepService.php, line 32
Class
- MappingStepService
- Class MappingStepFactory.
Namespace
Drupal\gathercontent_ui\Form\MappingEditStepsCode
public function getNewStep(MappingInterface $mapping, Template $template) {
if ($this->newStep === NULL) {
$this->newStep = new MappingStepNew($mapping, $template);
}
return $this->newStep;
}