|
|
@ -55,7 +55,7 @@ class MediaSourceHasMimetype extends ConditionPluginBase { |
|
|
|
$source = $entity->getSource(); |
|
|
|
$source = $entity->getSource(); |
|
|
|
if ($source) { |
|
|
|
if ($source) { |
|
|
|
$source_file = File::load($source->getSourceFieldValue($entity)); |
|
|
|
$source_file = File::load($source->getSourceFieldValue($entity)); |
|
|
|
if ($this->configuration['mimetype'] == $source_file->getMimeType()) { |
|
|
|
if (!empty($source_file) && $this->configuration['mimetype'] == $source_file->getMimeType()) { |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|