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 |
||
5 | 3 | public function init(): void |
|
6 | { |
||
7 | // Init the Context Switch Action helper |
||
8 | 3 | $contextSwitch = $this->_helper->contextSwitch(); |
|
9 | |||
10 | // Add the new context |
||
11 | 3 | $contextSwitch->setContexts([ |
|
12 | 3 | 'rss' => ['suffix' => 'rss'], |
|
13 | ]); |
||
14 | |||
15 | 3 | $contextSwitch->addActionContext('index', 'rss')->initContext(); |
|
16 | 3 | } |
|
43 |