Browse Source

method check for remote videos (#162)

* method check for remote videos

* merged upstream changes

* fixed syntax
pull/729/head
Alan Stanley 5 years ago committed by dannylamb
parent
commit
93e55991a0
  1. 3
      src/EventSubscriber/MediaLinkHeaderSubscriber.php

3
src/EventSubscriber/MediaLinkHeaderSubscriber.php

@ -71,7 +71,8 @@ class MediaLinkHeaderSubscriber extends LinkHeaderSubscriber implements EventSub
$source_field = $type_configuration['source_field']; $source_field = $type_configuration['source_field'];
if (empty($source_field) || if (empty($source_field) ||
!$media->hasField($source_field) !$media->hasField($source_field) ||
!method_exists($media->get($source_field), 'referencedEntities')
) { ) {
return $links; return $links;
} }

Loading…
Cancel
Save