You are here

public function MappingStepService::getEditStep in GatherContent 8.5

Same name and namespace in other branches
  1. 8.4 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.

array $template: Template array.

Return value

\Drupal\gathercontent_ui\Form\MappingEditSteps\MappingStepEdit MappingStepEdit object.

File

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

Class

MappingStepService
Class MappingStepFactory.

Namespace

Drupal\gathercontent_ui\Form\MappingEditSteps

Code

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