| 1 | <?php |
||
| 5 | class Image extends BaseFile |
||
| 6 | { |
||
| 7 | protected $type = 'image'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * {@inheritdoc} |
||
| 11 | */ |
||
| 12 | public function getValue() |
||
| 13 | { |
||
| 14 | $value = parent::getValue(); |
||
| 15 | if (empty($value) || ! $this->existsFile($value)) { |
||
| 16 | return []; |
||
| 17 | } |
||
| 18 | |||
| 19 | return $this->getFileInfo($value); |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function mutateValueAsPath() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | protected function getDefaultExtensions() |
||
| 36 | } |
||
| 37 |