You are here

public function ContentAccessController::getContentAccessTitle in Content Access 8

Returns content access settings page title.

1 string reference to 'ContentAccessController::getContentAccessTitle'
content_access.routing.yml in ./content_access.routing.yml
content_access.routing.yml

File

src/Controller/ContentAccessController.php, line 43

Class

ContentAccessController
Controller routines for user routes.

Namespace

Drupal\content_access\Controller

Code

public function getContentAccessTitle() {
  $node = $this->routeMatch
    ->getParameter('node');
  $title = $this
    ->t('Access control for <em>@title</em>', [
    '@title' => $node
      ->getTitle(),
  ]);
  return $title;
}