| Conditions | 4 |
| Paths | 8 |
| Total Lines | 24 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | public function renderButton() |
||
| 62 | { |
||
| 63 | $link = $this->createLink($this->grid, $this->href, $this->params); |
||
| 64 | |||
| 65 | $a = Html::el('a')->href($link); |
||
| 66 | |||
| 67 | $this->tryAddIcon($a, $this->getIcon(), $this->getText()); |
||
| 68 | |||
| 69 | if (!empty($this->attributes)) { |
||
| 70 | $a->addAttributes($this->attributes); |
||
| 71 | } |
||
| 72 | |||
| 73 | $a->addText($this->grid->getTranslator()->translate($this->text)); |
||
| 74 | |||
| 75 | if ($this->title) { |
||
| 76 | $a->title($this->grid->getTranslator()->translate($this->title)); |
||
| 77 | } |
||
| 78 | |||
| 79 | if ($this->class) { |
||
| 80 | $a->class($this->class); |
||
| 81 | } |
||
| 82 | |||
| 83 | return $a; |
||
| 84 | } |
||
| 85 | |||
| 99 |