Commit b888a36c authored by lauriii's avatar lauriii

Issue #2930274 by dawehner, Berdir, slashrsm, Sam152: View mode class is not...

Issue #2930274 by dawehner, Berdir, slashrsm, Sam152: View mode class is not built correctly in media.html.twig
parent 3e1d6c20
......@@ -173,6 +173,7 @@ public function testMediaWithMultipleMediaTypes() {
$this->drupalGet('media/' . $first_media_item->id());
$assert_session->statusCodeEquals(200);
$assert_session->pageTextContains($first_media_item->getName());
$assert_session->elementsCount('css', '.media--view-mode-full', 1);
// Go to second media item.
$this->drupalGet('media/' . $second_media_item->id());
......
......@@ -17,7 +17,7 @@
'media',
'media--type-' ~ media.bundle()|clean_class,
not media.isPublished() ? 'media--unpublished',
view_mode ? 'media--view-mode-' ~ view_mode.id()|clean_class,
view_mode ? 'media--view-mode-' ~ view_mode|clean_class,
]
%}
<article{{ attributes.addClass(classes) }}>
......
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