You are here

public function ProviderManager::loadDefinitionFromInput in Video Embed Field 8

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

Load a plugin definition from an input.

Parameters

string $input: An input string.

Return value

array A plugin definition.

Overrides ProviderManagerInterface::loadDefinitionFromInput

1 call to ProviderManager::loadDefinitionFromInput()
ProviderManager::loadProviderFromInput in src/ProviderManager.php
Load a provider from user input.

File

src/ProviderManager.php, line 77

Class

ProviderManager
Gathers the provider plugins.

Namespace

Drupal\video_embed_field

Code

public function loadDefinitionFromInput($input) {
  return $this
    ->filterApplicableDefinitions($this
    ->getDefinitions(), $input);
}