Skip to content
Snippets Groups Projects

Issue #3517526 by ivnish: Fix inline links caching

Merged Andrei Ivnitskii requested to merge issue/flag-3517526:3517526-fix-inline-links into 8.x-4.x
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -453,6 +453,12 @@ function flag_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisp
$build['#contextual_links'][$entity_type]['metadata']['flag_keys'] = implode(',', $flag_keys);
}
}
// Enable placeholder on entity links to avoid them being cached with the
// entity view mode.
if (isset($build['links']['#lazy_builder'])) {
$build['links']['#create_placeholder'] = TRUE;
}
}
/**
Loading