public function YamlFormController::css in YAML Form 8
Returns a form's CSS.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The current request.
\Drupal\yamlform\YamlFormInterface $yamlform: The form.
Return value
\Symfony\Component\HttpFoundation\Response The response object.
1 string reference to 'YamlFormController::css'
File
- src/
Controller/ YamlFormController.php, line 72
Class
- YamlFormController
- Provides route responses for form.
Namespace
Drupal\yamlform\ControllerCode
public function css(Request $request, YamlFormInterface $yamlform) {
return new Response($yamlform
->getCss(), 200, [
'Content-Type' => 'text/css',
]);
}