You are here

public function MappingStepService::getEditStep in GatherContent 8.4

Same name and namespace in other branches
  1. 8.5 gathercontent_ui/src/Form/MappingEditSteps/MappingStepService.php \Drupal\gathercontent_ui\Form\MappingEditSteps\MappingStepService::getEditStep()

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\MappingStepEdit MappingStepEdit object.

File

gathercontent_ui/src/Form/MappingEditSteps/MappingStepService.php, line 51

Class

MappingStepService
Class MappingStepFactory.

Namespace

Drupal\gathercontent_ui\Form\MappingEditSteps

Code

public function getEditStep(MappingInterface $mapping, Template $template) {
  if ($this->editStep === NULL) {
    $this->editStep = new MappingStepEdit($mapping, $template);
  }
  return $this->editStep;
}