public function BlogLister::userBlogTitle in Blog 3.x
Same name and namespace in other branches
- 8.2 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(),
]);
}