public static function BlazyVideoTrait::videoEmbedMediaManager in Blazy 8
Returns the optional VEF service to avoid dependency for optional plugins.
1 call to BlazyVideoTrait::videoEmbedMediaManager()
- BlazyVideoTrait::buildVideo in src/
Dejavu/ BlazyVideoTrait.php - Builds relevant video embed field settings based on the given media url.
File
- src/
Dejavu/ BlazyVideoTrait.php, line 37
Class
- BlazyVideoTrait
- A Trait common for optional Media Entity and Video Embed Media integration.
Namespace
Drupal\blazy\DejavuCode
public static function videoEmbedMediaManager() {
if (function_exists('video_embed_field_theme')) {
return \Drupal::service('video_embed_field.provider_manager');
}
return FALSE;
}