File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,16 @@ public function getFirstMedia(
103103
104104 public function getFirstMediaUrl (
105105 ?string $ collectionName = null ,
106- ?string $ collectionGroup = null
106+ ?string $ collectionGroup = null ,
107+ ?string $ conversion = null ,
108+ ?array $ parameters = null ,
107109 ): ?string {
108110 $ media = $ this ->getFirstMedia ($ collectionName , $ collectionGroup );
109111
110- if ($ url = $ media ?->getUrl()) {
112+ if ($ url = $ media ?->getUrl(
113+ conversion: $ conversion ,
114+ parameters: $ parameters
115+ )) {
111116 return $ url ;
112117 }
113118
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ public function getFirstMedia(
5656
5757 public function getFirstMediaUrl (
5858 ?string $ collectionName = null ,
59- ?string $ collectionGroup = null
59+ ?string $ collectionGroup = null ,
60+ ?string $ conversion = null ,
61+ ?array $ parameters = null ,
6062 ): ?string ;
6163
6264 /**
You can’t perform that action at this time.
0 commit comments