Skip to content
Snippets Groups Projects
Commit 96986d5d authored by Jeffrey Fortune's avatar Jeffrey Fortune
Browse files

fix for the ajax error when removing an image/ clean up on empty log function

parent 935cc085
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,9 @@ class BgImgFieldFormatter extends ResponsiveImageFormatter implements ContainerF
// Load the files to render.
$files = [];
foreach ($items->getValue() as $item) {
if (!isset($file['file'])) {
continue;
}
$files[] = [
'file' => File::load($item['target_id']),
'item' => $item
......@@ -289,15 +292,4 @@ class BgImgFieldFormatter extends ResponsiveImageFormatter implements ContainerF
return $css;
}
/**
* Implement abstract method
*
* @param $level
* @param $message
* @param array $context
*/
public function log($level, $message, array $context = []) {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment