Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 3 | public function init(): void |
|
10 | { |
||
11 | // Init the Context Switch Action helper |
||
12 | 3 | $contextSwitch = $this->_helper->contextSwitch(); |
|
13 | |||
14 | // Add the new context |
||
15 | 3 | $contextSwitch->setContexts([ |
|
16 | 3 | 'rss' => ['suffix' => 'rss'], |
|
17 | ]); |
||
18 | |||
19 | 3 | $contextSwitch->addActionContext('index', 'rss')->initContext(); |
|
20 | 3 | } |
|
47 |