Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 9 | protected function run(): string |
|
28 | { |
||
29 | 9 | if (!isset($this->options['id'])) { |
|
30 | 7 | $this->options['id'] = "{$this->getId()}-button"; |
|
31 | } |
||
32 | |||
33 | 9 | Html::addCssClass($this->options, ['widget' => 'btn']); |
|
34 | |||
35 | 9 | $this->registerPlugin('button', $this->options); |
|
36 | |||
37 | 9 | return Html::tag( |
|
38 | 9 | $this->tagName, |
|
39 | 9 | $this->encodeLabels ? Html::encode($this->label) : $this->label, |
|
40 | 9 | $this->options |
|
41 | ); |
||
102 |