Skip to content

Commit

Permalink
Issue #3406255 by SV: Use entity type label to get translated data on…
Browse files Browse the repository at this point in the history
… the stream/email
  • Loading branch information
volodymyr-sydor committed Dec 5, 2023
1 parent dcebbf5 commit f19dd8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function social_comment_tokens($type, $tokens, array $data, array $options, Bubb
}
else {
if ($entity instanceof NodeInterface) {
$commented_content_type = strtolower($entity->getType());
$commented_content_type = strtolower((string) $entity->type->entity->label());
}
else {
$commented_content_type = $entity->bundle();
Expand Down

0 comments on commit f19dd8f

Please sign in to comment.