You are here

public function EntityFormModeBase::addPageTitle in Form mode manager 8

The _title_callback for the entity.add routes.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

Return value

string The page title.

1 method overrides EntityFormModeBase::addPageTitle()
UserFormModeController::addPageTitle in src/Controller/UserFormModeController.php
The _title_callback for the entity.add routes.

File

src/Controller/EntityFormModeBase.php, line 306

Class

EntityFormModeBase
Controller for entity form mode support.

Namespace

Drupal\form_mode_manager\Controller

Code

public function addPageTitle(RouteMatchInterface $route_match) {
  return $this
    ->pageTitle($route_match, $this
    ->t('Create'));
}