Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function render() |
||
41 | { |
||
42 | $iface = '\Aimeos\MW\View\Iface'; |
||
43 | $view = $this->templateVariableContainer->get( '_aimeos_view' ); |
||
44 | |||
45 | if( !is_object( $view ) || !( $view instanceof $iface ) ) { |
||
46 | throw new Exception( 'Aimeos view object is missing' ); |
||
47 | } |
||
48 | |||
49 | if( !isset( $this->arguments['name'] ) ) { |
||
50 | throw new Exception( 'Attribute "name" missing for Aimeos translate view helper' ); |
||
51 | } |
||
52 | |||
53 | $view->block()->set( $this->arguments['name'], $this->renderChildren() ); |
||
54 | } |
||
55 | } |