Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function getCellContent($entity) |
||
23 | { |
||
24 | $value = (string)$this->getCellValue($entity); |
||
25 | if (!empty($value)) { |
||
26 | if ($this->format === 'html') { |
||
27 | return $this->template->renderBlock('grid_img', [ |
||
28 | 'src' => $value, |
||
29 | 'width' => $this->width, |
||
30 | 'height' => $this->height, |
||
31 | 'alt' => $this->getAlt($entity) |
||
32 | ]); |
||
33 | } |
||
34 | return htmlspecialchars($value); |
||
35 | } else { |
||
36 | return $this->emptyValue; |
||
37 | } |
||
91 |