You are here

public function AgreementForm::title in Agreement 8.2

Same name in this branch
  1. 8.2 src/Form/AgreementForm.php \Drupal\agreement\Form\AgreementForm::title()
  2. 8.2 src/Entity/AgreementForm.php \Drupal\agreement\Entity\AgreementForm::title()
Same name and namespace in other branches
  1. 3.0.x 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\Form

Code

public function title(RouteMatchInterface $routeMatch, Agreement $agreement) {
  $settings = $agreement
    ->getSettings();
  return $this
    ->t('@title', [
    '@title' => $settings['title'],
  ]);
}