You are here

public function BlogLister::userBlogTitle in Blog 8.2

Same name and namespace in other branches
  1. 3.x src/BlogLister.php \Drupal\blog\BlogLister::userBlogTitle()

Parameters

\Drupal\user\UserInterface $user: User object.

Return value

string Title string

Overrides BlogListerInterface::userBlogTitle

File

src/BlogLister.php, line 46

Class

BlogLister
Defines a blog lister.

Namespace

Drupal\blog

Code

public function userBlogTitle(UserInterface $user) {
  return new TranslatableMarkup("@username's blog", [
    '@username' => $user
      ->getDisplayName(),
  ]);
}