public function PhotosAlbumController::getTitle in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Controller/PhotosAlbumController.php \Drupal\photos\Controller\PhotosAlbumController::getTitle()
- 8.4 src/Controller/PhotosAlbumController.php \Drupal\photos\Controller\PhotosAlbumController::getTitle()
Set page title.
File
- src/
Controller/ PhotosAlbumController.php, line 137
Class
- PhotosAlbumController
- Album view controller.
Namespace
Drupal\photos\ControllerCode
public function getTitle() {
// Get node object.
$node = $this->routeMatch
->getParameter('node');
$title = 'Album: ' . $node
->getTitle();
return $title;
}