You are here

public function LogController::addPageTitle in Log entity 8

The _title_callback for the log.add route.

Parameters

\Drupal\log\LogTypeInterface $log_type: The current log.

Return value

string The page title.

1 string reference to 'LogController::addPageTitle'
log.routing.yml in ./log.routing.yml
log.routing.yml

File

src/Controller/LogController.php, line 282
Contains \Drupal\log\Controller\LogController.

Class

LogController
Returns responses for Log routes.

Namespace

Drupal\log\Controller

Code

public function addPageTitle(LogTypeInterface $log_type) {
  return $this
    ->t('Create @name', array(
    '@name' => $log_type
      ->label(),
  ));
}