| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function postLoad(Page $page) |
||
| 23 | { |
||
| 24 | // todo |
||
| 25 | //$this->switchCurrentApp($page->getHost()); |
||
| 26 | //$page->setApp(clone $this->app); |
||
| 27 | |||
| 28 | if (false === $this->params->get('pwc.main_content_twig') || null === $page->getOtherProperty('twig')) { |
||
| 29 | $page->setTwig($this->params->get('pwc.main_content_twig')); |
||
| 30 | } |
||
| 31 | |||
| 32 | if (null === $page->getMainContentType()) { |
||
| 33 | $page->setMainContentType($this->params->get('pwc.main_content_type_default')); |
||
| 34 | } |
||
| 35 | |||
| 36 | $page->setContent($this->mainContentManager->manage($page)); |
||
| 37 | } |
||
| 49 |