| Conditions | 6 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function init() |
||
| 28 | { |
||
| 29 | $this->setName($this->getOption('name') ?: 'searchform'); |
||
| 30 | |||
| 31 | $this->addTextElement( |
||
| 32 | $this->getOption('text_name') ?: 'q', |
||
| 33 | $this->getOption('text_label') ?: /*@translate*/ 'Search', |
||
| 34 | $this->getOption('text_placeholder') ?: /*@translate*/ 'Search query', |
||
| 35 | $this->getOption('text_span') ?: 12, |
||
| 36 | 50, |
||
| 37 | true |
||
| 38 | ); |
||
| 39 | |||
| 40 | $this->add([ |
||
| 41 | 'type' => FeaturedCompaniesFilterRadio::class |
||
| 42 | ]); |
||
| 43 | |||
| 44 | $this->addButton(/*@translate*/ 'Search', -1000, 'submit'); |
||
| 45 | $this->addButton(/*@translate*/ 'Clear', -1001, 'reset'); |
||
| 46 | |||
| 47 | $this->addElements(); |
||
| 48 | } |
||
| 50 |