Following video_embed_field #3580405, the renderEmbedCode() method is deprecated in video_embed_field 3.1.0 in favor of renderEmbed(array $options).

The PeerTube provider plugin needs to be updated to:

  • Override renderEmbed() with the actual embed implementation (including the new loading attribute for lazy loading).
  • Deprecate renderEmbedCode() by having it delegate to $this->renderEmbed() with a @trigger_error() notice.
  • Require drupal/video_embed_field: ^3.1 in composer.json.

This follows the same deprecation pattern used in the core video_embed_field providers (YouTube, Vimeo, YouTubePlaylist) and video_embed_dailymotion (#3580429).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

  • mably committed ef350a46 on 3.x
    task: #3580446 Deprecate renderEmbedCode() in favor of renderEmbed()
    
    By...
mably’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.