public function AgreementForm::title in Agreement 3.0.x
Same name in this branch
- 3.0.x src/Form/AgreementForm.php \Drupal\agreement\Form\AgreementForm::title()
- 3.0.x src/Entity/AgreementForm.php \Drupal\agreement\Entity\AgreementForm::title()
Same name and namespace in other branches
- 8.2 src/Form/AgreementForm.php \Drupal\agreement\Form\AgreementForm::title()
Get the page title.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The route match object. Ignored.
\Drupal\agreement\Entity\Agreement $agreement: The agreement entity.
Return value
string The filtered title.
File
- src/
Form/ AgreementForm.php, line 116
Class
- AgreementForm
- Agreement page form.
Namespace
Drupal\agreement\FormCode
public function title(RouteMatchInterface $routeMatch, Agreement $agreement) {
$settings = $agreement
->getSettings();
return $this
->t('@title', [
'@title' => $settings['title'],
]);
}