Bolt\Twig\TwigExtension::hasWidgets PHP 메소드

hasWidgets() 공개 메소드

또한 보기: Bolt\Twig\Handler\WidgetHandler::hasWidgets()
public hasWidgets ( $location = null, $zone = 'frontend' )
    public function hasWidgets($location = null, $zone = 'frontend')
    {
        return $this->handlers['widget']->hasWidgets($location, $zone);
    }

Usage Example

예제 #1
0
 public function testHasWidgets()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['widget'] = $this->getMockHandler('WidgetHandler', 'hasWidgets');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->hasWidgets(null, null);
 }