$name, 'data' => $data, 'options' => $options, ], [ 'variable' => $variable, ], $lineno, $tag ); $this->assign = $assign; } /** * Compile tag. * * @param \Twig_Compiler $compiler Compiler. * * @return void */ // @codingStandardsIgnoreStart public function compile(\Twig_Compiler $compiler) { // @codingStandardsIgnoreEnd $compiler->addDebugInfo($this); if ($this->assign) { $compiler->raw('$context[\'' . $this->getAttribute('variable') . '\'] = '); // @codingStandardsIgnoreStart } else { // @codingStandardsIgnoreEnd $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"); } }