You are here

public static function YouTubePlaylist::getIdFromInput in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/video_embed_field/Provider/YouTubePlaylist.php \Drupal\video_embed_field\Plugin\video_embed_field\Provider\YouTubePlaylist::getIdFromInput()

Get the ID of the video from user input.

Parameters

string $input: Input a user would enter into a video field.

Return value

string The ID in whatever format makes sense for the provider.

Overrides ProviderPluginInterface::getIdFromInput

File

src/Plugin/video_embed_field/Provider/YouTubePlaylist.php, line 47

Class

YouTubePlaylist
A YouTube playlist video provider.

Namespace

Drupal\video_embed_field\Plugin\video_embed_field\Provider

Code

public static function getIdFromInput($input) {
  return static::getUrlComponent($input, 'id');
}