You are here

public function AdvancedHelpController::topicPageTitle in Advanced Help 8

Set the title of the topic.

Parameters

$module:

$topic:

Return value

string

1 string reference to 'AdvancedHelpController::topicPageTitle'
advanced_help.routing.yml in ./advanced_help.routing.yml
advanced_help.routing.yml

File

src/Controller/AdvancedHelpController.php, line 400

Class

AdvancedHelpController
Class AdvancedHelpController.

Namespace

Drupal\advanced_help\Controller

Code

public function topicPageTitle($module, $topic) {
  $info = $this->advanced_help
    ->getTopic($module, $topic);
  if (!$info) {
    throw new NotFoundHttpException();
  }
  return $info['title'];
}