Skip to content
Snippets Groups Projects
Commit a27ffaf2 authored by Adam Shepherd's avatar Adam Shepherd
Browse files

Tidy up

parent 1f77e301
No related branches found
No related tags found
1 merge request!7Resolve #3347194 "Implement hookhelp"
......@@ -41,7 +41,7 @@ function manage_display_entity_type_build(array &$entity_types) {
// Set user name as a label else it gets printed twice on the user page.
$keys = $entity_types['user']->get('entity_keys');
$keys['label'] = 'name';
$keys = $entity_types['user']->set('entity_keys', $keys);
$entity_types['user']->set('entity_keys', $keys);
}
}
......@@ -161,8 +161,9 @@ function template_preprocess_submitted(&$variables) {
* Prepares variables for 'in_reply_to' field formatter template.
*/
function template_preprocess_in_reply_to(&$variables) {
// @todo Remove the forced rendering. Find out how to render within
// translation in the template.
// Force rendering.
// @todo Remove after fixing core bug.
// @see https://www.drupal.org/project/drupal/issues/2334319
$renderer = \Drupal::service('renderer');
$variables['subject'] = $renderer->render($variables['elements']['subject']);
$variables['uid'] = $renderer->render($variables['elements']['uid']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment