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

editable() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::editable()
public editable ( $html, $content, $field )
    public function editable($html, $content, $field)
    {
        return $this->handlers['html']->editable($html, $content, $field, $this->safe);
    }

Usage Example

예제 #1
0
 public function testEditable()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['html'] = $this->getMockHandler('HtmlHandler', 'editable');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->editable(null, new Content($app), null, null);
 }