| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function getThumbnail(ContentType $contentType, array $fields): ?Thumbnail |
||
| 26 | { |
||
| 27 | /** @var \eZ\Publish\SPI\Repository\Strategy\ContentThumbnail\ThumbnailStrategy $strategy */ |
||
| 28 | foreach ($this->strategies as $strategy) { |
||
| 29 | $thumbnail = $strategy->getThumbnail($contentType, $fields); |
||
| 30 | |||
| 31 | if ($thumbnail !== null) { |
||
| 32 | return $thumbnail; |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | return null; |
||
| 37 | } |
||
| 38 | |||
| 49 |