Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 5cd579b7 authored by Nicolas's avatar Nicolas
Browse files

CodeStyle for PHP CS

parent 845015e0
No related branches found
No related tags found
No related merge requests found
......@@ -52,11 +52,14 @@ class Thumbnail extends Column
if(isset($dataSource['data']['items'])) {
/* Récupère le nom de la colonne concerné */
$fieldName = $this->getData('name');
foreach($dataSource['data']['items'] as & $item) {
foreach ($dataSource['data']['items'] as & $item) {
$url = '';
if($item[$fieldName] != '') {
if ($item[$fieldName] != '') {
$url = $item['image_path'];
}
$item[$fieldName . '_src'] = $url;
$item[$fieldName . '_alt'] = $item['image_alt'] ?: '';
$item[$fieldName . '_link'] = $this->urlBuilder->getUrl(
......
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