public function RouteCallback::addFormTitle in Contact Emails 8
File
- src/
Routing/ RouteCallback.php, line 15
Class
- RouteCallback
- Defines dynamic routes.
Namespace
Drupal\contact_emails\RoutingCode
public function addFormTitle() {
$route_match = \Drupal::routeMatch();
$contact_form = $route_match
->getParameter('contact_form');
return t('Add New Contact Email to "@contact_form"', [
'@contact_form' => $contact_form
->label(),
]);
}