| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], string &$expire = null ) : \Aimeos\MW\View\Iface |
||
| 32 | { |
||
| 33 | $context = $this->getContext(); |
||
| 34 | $locale = $context->getLocale(); |
||
| 35 | |||
| 36 | $view->assign( [ |
||
| 37 | 'contextLanguage' => $locale->getLanguageId(), |
||
| 38 | 'contextCurrency' => $locale->getCurrencyId(), |
||
| 39 | 'contextSite' => $locale->getSiteItem()->getCode(), |
||
| 40 | 'contextSiteId' => $locale->getSiteId(), |
||
| 41 | 'contextUserId' => $context->getUserId(), |
||
| 42 | 'contextGroupIds' => $context->getGroupIds(), |
||
| 43 | ] ); |
||
| 44 | |||
| 45 | return $this->getClient()->addData( $view, $tags, $expire ); |
||
| 46 | } |
||
| 48 |