Youtube looping (#2866001): Html5::renderEmbedCode parameters not compatible with ProviderPluginInterface::renderEmbedCode

Created on 17 July 2020, over 4 years ago
Updated 28 June 2024, 6 months ago

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);
Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024