|
|
@ -82,9 +82,9 @@ final class LinkCaption extends ActionBase implements ContainerFactoryPluginInte |
|
|
|
* {@inheritdoc} |
|
|
|
* {@inheritdoc} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function execute(ContentEntityInterface $entity = NULL): void { |
|
|
|
public function execute(ContentEntityInterface $entity = NULL): void { |
|
|
|
$transcript_media = $this->getMediaByUri('http://pcdm.org/use#Transcript'); |
|
|
|
$transcript_media = $this->getMediaByUri($entity, 'http://pcdm.org/use#Transcript'); |
|
|
|
$host_media = $this->getMediaByUri('http://pcdm.org/use#ServiceFile') |
|
|
|
$host_media = $this->getMediaByUri($entity, 'http://pcdm.org/use#ServiceFile') |
|
|
|
?? $this->getMediaByUri('http://pcdm.org/use#OriginalFile'); |
|
|
|
?? $this->getMediaByUri($entity, 'http://pcdm.org/use#OriginalFile'); |
|
|
|
|
|
|
|
|
|
|
|
if ($transcript_media && $host_media |
|
|
|
if ($transcript_media && $host_media |
|
|
|
&& $transcript_media->bundle() === 'able_player_caption' |
|
|
|
&& $transcript_media->bundle() === 'able_player_caption' |
|
|
|