Skip to content
Snippets Groups Projects
Commit c688b8d5 authored by Luke Stirk's avatar Luke Stirk Committed by Pravin Gaikwad
Browse files

Issue #3180631: Iframe accessibility

parent 0d235477
Branches
Tags
1 merge request!4Issue #3180631: Iframe accessibility
......@@ -18,6 +18,7 @@ function media_entity_soundcloud_theme($existing, $type, $theme, $path) {
'type' => NULL,
'color' => NULL,
'options' => [],
'title' => NULL,
],
'file' => 'media_entity_soundcloud.theme.inc',
],
......
......@@ -132,6 +132,7 @@ class SoundcloudEmbedFormatter extends FormatterBase {
'#type' => $this->getSetting('type'),
'#color' => $this->getSetting('color'),
'#options' => $this->getSetting('options'),
'#title' => $media->label(),
];
}
}
......
......@@ -13,4 +13,4 @@
* @ingroup themeable
*/
#}
<iframe width="{{ width }}" height="{{ height }}" scrolling="no" frameborder="no" src="{{ url }}"></iframe>
<iframe width="{{ width }}" height="{{ height }}" scrolling="no" frameborder="no" src="{{ url }}" title="{{ title }}"></iframe>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment