mirror of
https://github.com/getgrav/grav.git
synced 2026-08-07 16:31:22 +02:00
Fixed fatal error with videos
This commit is contained in:
@@ -111,6 +111,17 @@ class Medium implements RenderableInterface, MediaFileInterface, JsonSerializabl
|
||||
$this->unserializeMediaObjectTrait($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: do we want this in base medium?
|
||||
*
|
||||
* @return ImageMediaInterface
|
||||
* @phpstan-pure
|
||||
*/
|
||||
public function higherQualityAlternative(): ImageMediaInterface
|
||||
{
|
||||
return $this->getThumbnail();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @phpstan-pure
|
||||
|
||||
Reference in New Issue
Block a user