| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function render() |
||
| 28 | { |
||
| 29 | $iface = '\Aimeos\MW\View\Iface'; |
||
| 30 | $view = $this->templateVariableContainer->get( '_aimeos_view' ); |
||
| 31 | |||
| 32 | if( !is_object( $view ) || !( $view instanceof $iface ) ) { |
||
| 33 | throw new Exception( 'Aimeos view object is missing' ); |
||
| 34 | } |
||
| 35 | |||
| 36 | if( !isset( $this->arguments['name'] ) ) { |
||
| 37 | throw new Exception( 'Attribute "name" missing for Aimeos translate view helper' ); |
||
| 38 | } |
||
| 39 | |||
| 40 | $view->block()->set( $this->arguments['name'], $this->renderChildren() ); |
||
| 41 | } |
||
| 42 | } |