You are here

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

Same name and namespace in other branches
  1. 8 src/ProviderPluginInterface.php \Drupal\video_embed_field\ProviderPluginInterface::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.

2 calls to ProviderPluginInterface::getIdFromInput()
ProviderPluginBase::isApplicable in src/ProviderPluginBase.php
Check if the plugin is applicable to the user input.
ProviderPluginBase::__construct in src/ProviderPluginBase.php
Create a plugin with the given input.
4 methods override ProviderPluginInterface::getIdFromInput()
MockProvider::getIdFromInput in tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php
Get the ID of the video from user input.
Vimeo::getIdFromInput in src/Plugin/video_embed_field/Provider/Vimeo.php
Get the ID of the video from user input.
YouTube::getIdFromInput in src/Plugin/video_embed_field/Provider/YouTube.php
Get the ID of the video from user input.
YouTubePlaylist::getIdFromInput in src/Plugin/video_embed_field/Provider/YouTubePlaylist.php
Get the ID of the video from user input.

File

src/ProviderPluginInterface.php, line 90

Class

ProviderPluginInterface
Providers an interface for embed providers.

Namespace

Drupal\video_embed_field

Code

public static function getIdFromInput($input);