By smustgrave on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
main
Introduced in version:
12.x
Issue links:
Description:
The template at core/modules/media/templates/media-oembed-iframe.html.twig has been updated from
Before
{#
/**
* @file
* Default theme implementation to display an oEmbed resource in an iframe.
*
* @ingroup themeable
*/
#}
<!DOCTYPE html>
<html>
<head>
<css-placeholder token="{{ placeholder_token }}">
</head>
<body style="margin: 0">
{{ media|raw }}
</body>
</html>
To
After
{#
/**
* @file
* Default theme implementation to display an oEmbed resource in an iframe.
*
* Available variables:
* - resource: The oEmbed Resource object.
* - media: Markup with the resource HTML (e.g. an <iframe> from the provider).
* - placeholder_token: A token for the CSS placeholder.
* - langcode: The language code of the current content language (e.g. "fr").
*
* @ingroup themeable
*/
#}
<!DOCTYPE html>
<html lang="{{ langcode }}">
<head>
<css-placeholder token="{{ placeholder_token }}">
</head>
<body style="margin: 0">
{{ media|raw }}
</body>
</html>
Impacts:
Themers