*/
public function getURL(?bool $forceWebP = null): string;
+ /**
+ * Returns the thumbnail of this cover photo.
+ *
+ * @since 6.2
+ */
+ public function getThumbnailURL(string $size = 'small'): string;
+
/**
* Returns the file name of this cover photo.
*/
/**
* Returns the object ID of this cover photo.
+ *
+ * @since 6.2
*/
public function getObjectID(): ?int;
}
return $this->file->getFullSizeImageSource();
}
+ #[\Override]
+ public function getThumbnailURL(string $size = 'small'): string
+ {
+ $thumbnail = $this->file->getThumbnail($size);
+
+ return $thumbnail ? $thumbnail->getLink() : $this->getURL();
+ }
+
#[\Override]
public function getFilename(?bool $forceWebP = null): string
{