You are here

public function ProviderManagerInterface::filterApplicableDefinitions in Video Embed Field 8

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

Get the provider applicable to the given user input.

Parameters

array $definitions: A list of definitions to test against.

string $user_input: The user input to test against the plugins.

Return value

\Drupal\video_embed_field\ProviderPluginInterface|bool The relevant plugin or FALSE on failure.

1 method overrides ProviderManagerInterface::filterApplicableDefinitions()
ProviderManager::filterApplicableDefinitions in src/ProviderManager.php
Get the provider applicable to the given user input.

File

src/ProviderManagerInterface.php, line 40

Class

ProviderManagerInterface
Interface for the class that gathers the provider plugins.

Namespace

Drupal\video_embed_field

Code

public function filterApplicableDefinitions(array $definitions, $user_input);