예제 #1
0
파일: Widget.php 프로젝트: ejailesb/repo
 /**
  * {@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;
 }
예제 #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)));
 }