You are here

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

Same name and namespace in other branches
  1. 8 tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php \Drupal\video_embed_field_mock_provider\Plugin\video_embed_field\Provider\MockProvider::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

tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php, line 66

Class

MockProvider
A mock video provider for use in tests.

Namespace

Drupal\video_embed_field_mock_provider\Plugin\video_embed_field\Provider

Code

public static function getIdFromInput($input) {
  return $input;
}