Commit 43a21717 authored by binoli.addweb's avatar binoli.addweb Committed by chris_hall_hu_cheng

Issue #2819859 by binoli.addweb: Invalid placeholder (username) in string: username's Blog

parent 7cab254f
......@@ -58,11 +58,11 @@ function blog_node_links_alter(array &$node_links, NodeInterface $entity, array
if ($entity->getEntityTypeId() == 'node' && $entity->bundle() == 'blog_post' && $context['view_mode'] != 'rss') {
$links['blog_usernames_blog'] = array(
'title' => t("username's Blog", array('username' => $entity->getOwner()->getDisplayName())),
'title' => t("@username's Blog", array('@username' => $entity->getOwner()->getDisplayName())),
'url' => Url::fromRoute('view.blog.blog_user_all', [
'arg_0' => $entity->getOwnerId(),
]),
'attributes' => array('title' => t("Read username's latest blog entries.", array('username' => $entity->getOwner()->getDisplayName()))),
'attributes' => array('title' => t("Read @username's latest blog entries.", array('@username' => $entity->getOwner()->getDisplayName()))),
);
$node_links['usernames_blog'] = array(
'#theme' => 'links__node__blog',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment