| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function render_cell($record) |
||
| 29 | { |
||
| 30 | $label = $record->username; |
||
| 31 | $name = $record->name; |
||
| 32 | |||
| 33 | if ($label != $name) |
||
| 34 | { |
||
| 35 | $label .= ' <small>(' . $name . ')</small>'; |
||
| 36 | } |
||
| 37 | |||
| 38 | return new Element('a', [ |
||
| 39 | |||
| 40 | Element::INNER_HTML => $label, |
||
| 41 | |||
| 42 | 'class' => 'edit', |
||
| 43 | 'href' => $this->app->url_for("admin:{$record->constructor}:edit", $record), |
||
| 44 | 'title' => $this->t('manage.edit') |
||
| 45 | |||
| 46 | ]); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |