You are here

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'
yamlform.routing.yml in ./yamlform.routing.yml
yamlform.routing.yml

File

src/Controller/YamlFormController.php, line 72

Class

YamlFormController
Provides route responses for form.

Namespace

Drupal\yamlform\Controller

Code

public function css(Request $request, YamlFormInterface $yamlform) {
  return new Response($yamlform
    ->getCss(), 200, [
    'Content-Type' => 'text/css',
  ]);
}