| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getThumbnail(Field $field): ?string |
||
| 23 | { |
||
| 24 | if (!$this->hasStrategy($field->fieldTypeIdentifier)) { |
||
| 25 | throw new NotFoundException('Field\ThumbnailStrategy', $field->fieldTypeIdentifier); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $this->strategies[$field->fieldTypeIdentifier]->getThumbnail($field); |
||
| 29 | } |
||
| 30 | |||
| 47 | } |