/** * {@inheritdoc} */ public function render(ContentInterface $content, array $settings) { static $nesting = 0; $output = $nesting++ < 10 ? $this['view']->render($this->getConfig('view'), array('widget' => $this, 'items' => $content->getItems(), 'settings' => array_merge($this->getConfig('settings'), $settings))) : ''; $nesting--; return $output; }
/** * {@inheritdoc} */ public function render(ContentInterface $content, array $settings) { return $this['view']->render($this->getConfig('view'), array('widget' => $this, 'items' => $content->getItems(), 'settings' => array_merge($this->getConfig('settings'), $settings))); }