Bolt\Twig\TwigExtension::editable PHP Method

editable() public method

See also: 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
ファイル: TwigExtensionTest.php プロジェクト: Twiebie/bolt
 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);
 }