You are here

public function MultiStepFormController::content in User Merge 2.x

Display the multi step form.

Parameters

string $property: Id of the property plugin.

Return value

array Return markup array.

Throws

\Symfony\Component\HttpKernel\Exception\NotFoundHttpException

1 string reference to 'MultiStepFormController::content'
usermerge.routing.yml in ./usermerge.routing.yml
usermerge.routing.yml

File

src/Controller/MultiStepFormController.php, line 55

Class

MultiStepFormController
Class MultiStepFormController.

Namespace

Drupal\usermerge\Controller

Code

public function content($property = '') {
  try {
    $form_name = $this->reviewSwitcher
      ->getFormFromProperty($property);
  } catch (UserMergeException $e) {
    throw new NotFoundHttpException();
  }
  $form = $this
    ->formBuilder()
    ->getForm($form_name);
  return $form;
}