You are here

public function YamlFormTemplatesController::previewTitle in YAML Form 8

Route preview title callback.

Parameters

\Drupal\yamlform\YamlFormInterface|null $yamlform: A form.

Return value

string The form label.

File

modules/yamlform_templates/src/Controller/YamlFormTemplatesController.php, line 220

Class

YamlFormTemplatesController
Provides route responses for form templates.

Namespace

Drupal\yamlform_templates\Controller

Code

public function previewTitle(YamlFormInterface $yamlform = NULL) {
  return $this
    ->t('Previewing @title template', [
    '@title' => $yamlform
      ->label(),
  ]);
}