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'
File
- src/
Controller/ YamlFormController.php, line 57
Class
- YamlFormController
- Provides route responses for form.
Namespace
Drupal\yamlform\ControllerCode
public function addForm(Request $request, YamlFormInterface $yamlform) {
return $yamlform
->getSubmissionForm();
}