function WizardFormController::getContentResult

Same name in other branches
  1. 8.x-3.x src/Controller/WizardFormController.php \Drupal\ctools\Controller\WizardFormController::getContentResult()

Overrides FormController::getContentResult

File

src/Controller/WizardFormController.php, line 74

Class

WizardFormController
Wrapping controller for wizard forms that serve as the main page body.

Namespace

Drupal\ctools\Controller

Code

public function getContentResult(Request $request, RouteMatchInterface $route_match) {
    $wizard = $this->getFormObject($route_match, $this->getFormArgument($route_match));
    $ajax = $request->attributes
        ->get('js') == 'ajax' ? TRUE : FALSE;
    return $this->wizardFactory
        ->getWizardForm($wizard, $request->attributes
        ->all(), $ajax);
}