You are here

public function SocialAlbumController::title in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::title()
  2. 10.0.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::title()
  3. 10.2.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::title()

Provides a generic title callback for the first post of the album.

Parameters

\Drupal\node\NodeInterface $node: The node object.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The title to page of the post.

1 string reference to 'SocialAlbumController::title'
social_album.routing.yml in modules/social_features/social_album/social_album.routing.yml
modules/social_features/social_album/social_album.routing.yml

File

modules/social_features/social_album/src/Controller/SocialAlbumController.php, line 88

Class

SocialAlbumController
Returns responses for Album routes.

Namespace

Drupal\social_album\Controller

Code

public function title(NodeInterface $node) {
  return $this
    ->t('Add images to album @name', [
    '@name' => $node
      ->label(),
  ]);
}