public function PhotosAlbumController::getTitle in Album Photos 8.5
Same name and namespace in other branches
- 8.4 src/Controller/PhotosAlbumController.php \Drupal\photos\Controller\PhotosAlbumController::getTitle()
- 6.0.x 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;
}