Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function isValid($value) |
||
29 | { |
||
30 | $filePath = GeneralUtility::getFileAbsFileName($value); |
||
31 | |||
32 | if (false === GeneralUtility::getUrl($filePath)) { |
||
33 | $errorMessage = $this->translateErrorMessage('validator.file_exists.not_valid', 'configuration_object', [$value]); |
||
34 | $this->addError($errorMessage, 1510085560); |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |