Conditions | 4 |
Paths | 8 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function init() |
||
48 | { |
||
49 | parent::init(); |
||
50 | if ($this->link) { |
||
51 | $this->tagName = 'a'; |
||
52 | $this->options['href'] = Url::to($this->link); |
||
53 | } |
||
54 | if ($this->buttonType) { |
||
55 | Html::addCssClass($this->options, 'btn-'.$this->buttonType); |
||
56 | } |
||
57 | if ($this->iconClass) { |
||
58 | $this->label = Html::tag('span', '', [ |
||
59 | 'class' => $this->iconClass, |
||
60 | ]) . ' ' . $this->label; |
||
61 | } |
||
64 |