You are here

public static function ProviderPluginInterface::isApplicable in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 src/ProviderPluginInterface.php \Drupal\video_embed_field\ProviderPluginInterface::isApplicable()

Check if the plugin is applicable to the user input.

Parameters

string $input: User input to check if it's a URL for the given provider.

Return value

bool If the plugin works for the given URL.

2 methods override ProviderPluginInterface::isApplicable()
MockProvider::isApplicable in tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php
Check if the plugin is applicable to the user input.
ProviderPluginBase::isApplicable in src/ProviderPluginBase.php
Check if the plugin is applicable to the user input.

File

src/ProviderPluginInterface.php, line 20

Class

ProviderPluginInterface
Providers an interface for embed providers.

Namespace

Drupal\video_embed_field

Code

public static function isApplicable($input);