| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function run() |
||
| 29 | { |
||
| 30 | $color = GridLegend::create(new $this->gridLegendClass($this->model))->gridColumnOptions('actions'); |
||
| 31 | $colorString = implode(';', $color); |
||
| 32 | |||
| 33 | $this->view->registerCss('.badge .item-badge-text { color: #bbbbbb; mix-blend-mode: difference; }'); |
||
| 34 | |||
| 35 | return <<<HTML |
||
| 36 | <span class="badge" style="$colorString"><span class="item-badge-text">{$this->model->{$this->nameAttribute}}</span></span> |
||
| 37 | HTML |
||
| 42 |