- Issue created by @pcambra
- Status changed to Needs review
over 1 year ago 10:57am 29 March 2023
$fids = $this->fileStorage->getQuery()
->condition('uri', '%' . $imagePath . '%', 'LIKE')
->range(0, 1)
->execute();
if ($fids) {
return $this->fileStorage->load(reset($files));
}
Seems it should be
$fids = $this->fileStorage->getQuery()
->condition('uri', '%' . $imagePath . '%', 'LIKE')
->range(0, 1)
->execute();
if ($fids) {
return $this->fileStorage->load(reset($fids));
}
Needs review
1.0
Code