src/Lib/Twig/Node/Cell.php
public function compile(Compiler $compiler)
    {
        $compiler->addDebugInfo($this);

        if ($this->assign) {
            $compiler->raw('$context[\'' . $this->getAttribute('variable') . '\'] = ');
        } else {
            $compiler->raw('echo ');
        }
        $compiler->raw('$context[\'_view\']->cell(');
        $compiler->subcompile($this->getNode('name'));
        $data = $this->getNode('data');
        if ($data !== null) {
            $compiler->raw(',');
            $compiler->subcompile($data);
        }
        $options = $this->getNode('options');
        if ($options !== null) {
            $compiler->raw(',');
            $compiler->subcompile($options);
        }
        $compiler->raw(");\n");
    }
public function compile(Compiler $compiler)
    {
        $compiler->addDebugInfo($this);

        if ($this->assign) {
            $compiler->raw('$context[\'' . $this->getAttribute('variable') . '\'] = ');
        } else {
            $compiler->raw('echo ');
        }
        $compiler->raw('$context[\'_view\']->cell(');
        $compiler->subcompile($this->getNode('name'));
        $data = $this->getNode('data');
        if ($data !== null) {
            $compiler->raw(',');
            $compiler->subcompile($data);
        }
        $options = $this->getNode('options');
        if ($options !== null) {
            $compiler->raw(',');
            $compiler->subcompile($options);
        }
        $compiler->raw(");\n");
    }
public function compile ( Compiler $ compiler ) { $ compiler -> addDebugInfo ( $ this ) ; if ( $ this -> assign ) { $ compiler -> raw ( '$context[\'' . $ this -> getAttribute ( 'variable' ) . '\'] = ' ) ; } else { $ compiler -> raw ( 'echo ' ) ; } $ compiler -> raw ( '$context[\'_view\']->cell(' ) ; $ compiler -> subcompile ( $ this -> getNode ( 'name' ) ) ; $ data = $ this -> getNode ( 'data' ) ; if ( $ data !== null ) { $ compiler -> raw ( ',' ) ; $ compiler -> subcompile ( $ data ) ; } $ options = $ this -> getNode ( 'options' ) ; if ( $ options !== null ) { $ compiler -> raw ( ',' ) ; $ compiler -> subcompile ( $ options ) ; } $ compiler -> raw ( ");\n" ) ; }
Compile tag.

@param \Twig\Compiler $compiler Compiler.
Compile tag .