public function ProviderPluginInterface::renderEmbedCode in Video Embed Field 8.2
Same name and namespace in other branches
- 8 src/ProviderPluginInterface.php \Drupal\video_embed_field\ProviderPluginInterface::renderEmbedCode()
Render embed code.
Parameters
string $width: The width of the video player.
string $height: The height of the video player.
bool $autoplay: If the video should autoplay.
Return value
mixed A renderable array of the embed code.
4 methods override ProviderPluginInterface::renderEmbedCode()
- MockProvider::renderEmbedCode in tests/
modules/ video_embed_field_mock_provider/ src/ Plugin/ video_embed_field/ Provider/ MockProvider.php - Render embed code.
- Vimeo::renderEmbedCode in src/
Plugin/ video_embed_field/ Provider/ Vimeo.php - Render embed code.
- YouTube::renderEmbedCode in src/
Plugin/ video_embed_field/ Provider/ YouTube.php - Render embed code.
- YouTubePlaylist::renderEmbedCode in src/
Plugin/ video_embed_field/ Provider/ YouTubePlaylist.php - Render embed code.
File
- src/
ProviderPluginInterface.php, line 79
Class
- ProviderPluginInterface
- Providers an interface for embed providers.
Namespace
Drupal\video_embed_fieldCode
public function renderEmbedCode($width, $height, $autoplay);