Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fatal error: Declaration of Drupal\video_embed_html5\Plugin\video_embed_field\Provider\Html5::renderEmbedCode($width, $height, $autoplay) must be compatible with Drupal\video_embed_field\ProviderPluginInterface::renderEmbedCode($width, $height, $autoplay, $loop, $mute, $controls, $rel) in /modules/contrib/video_embed_html5/src/Plugin/video_embed_field/Provider/Html5.php on line 0
We have to add the parameters:
/**
* Render embed code.
*
* @param string $width
* The width of the video player.
* @param string $height
* The height of the video player.
* @param bool $autoplay
* If the video should autoplay.
* @param bool $loop
* If the video should loop.
* @param bool $mute
* If the video should play muted.
* @param bool $controls
* Whether show controls (youtube only).
* @param bool $rel
* Whether show related videos (youtube only).
*
* @return mixed
* A renderable array of the embed code.
*/
public function renderEmbedCode($width, $height, $autoplay, $loop, $mute, $controls, $rel);
Comment | File | Size | Author |
---|---|---|---|
#2 | video_embed_html5_renderEmbedCodeParametersFix_3159736-2.patch | 603 bytes | Anybody |
|
Comments
Comment #2
AnybodyPatch attached, please review because the current module version is broken.
Comment #4
AnybodySorry! The issue is based on a patch from #2866001: Youtube looping which also requires alignments in all dependent modules.