protected function VideoEmbedDialog::getProvider in Video Embed Field 8.2
Same name and namespace in other branches
- 8 modules/video_embed_wysiwyg/src/Form/VideoEmbedDialog.php \Drupal\video_embed_wysiwyg\Form\VideoEmbedDialog::getProvider()
Get a provider from some input.
Parameters
string $input: The input string.
Return value
bool|\Drupal\video_embed_field\ProviderPluginInterface A video provider or FALSE on failure.
2 calls to VideoEmbedDialog::getProvider()
- VideoEmbedDialog::ajaxSubmit in modules/
video_embed_wysiwyg/ src/ Form/ VideoEmbedDialog.php - An AJAX submit callback to validate the WYSIWYG modal.
- VideoEmbedDialog::validateForm in modules/
video_embed_wysiwyg/ src/ Form/ VideoEmbedDialog.php - Form validation handler.
File
- modules/
video_embed_wysiwyg/ src/ Form/ VideoEmbedDialog.php, line 201
Class
- VideoEmbedDialog
- A class for a video embed dialog.
Namespace
Drupal\video_embed_wysiwyg\FormCode
protected function getProvider($input) {
return $this->providerManager
->loadProviderFromInput($input);
}