public function BlogLister::userBlogTitle in Blog 8.2
Same name and namespace in other branches
- 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\blogCode
public function userBlogTitle(UserInterface $user) {
return new TranslatableMarkup("@username's blog", [
'@username' => $user
->getDisplayName(),
]);
}