You are here

public function WizardFormController::getContentResult in Chaos Tool Suite (ctools) 8.3

Invokes the form and returns the result.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

Return value

array The render array that results from invoking the controller.

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);
}