Exemplo n.º 1
0
 /**
  * {@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;
 }
Exemplo n.º 2
0
 /**
  * {@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)));
 }