You are here

public function YamlFormController::addForm in YAML Form 8

Returns a form to add a new submission to a form.

Parameters

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

\Drupal\yamlform\YamlFormInterface $yamlform: The form this submission will be added to.

Return value

array The form submission form.

1 string reference to 'YamlFormController::addForm'
yamlform.routing.yml in ./yamlform.routing.yml
yamlform.routing.yml

File

src/Controller/YamlFormController.php, line 57

Class

YamlFormController
Provides route responses for form.

Namespace

Drupal\yamlform\Controller

Code

public function addForm(Request $request, YamlFormInterface $yamlform) {
  return $yamlform
    ->getSubmissionForm();
}