$10 GRAYBYTE WORDPRESS FILE MANAGER $88

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php55/usr/share/pear/Symfony/Bridge/Twig/Node/

HOME
Current File : /opt/alt/php55/usr/share/pear/Symfony/Bridge/Twig/Node//RenderBlockNode.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Bridge\Twig\Node;

/**
 * Compiles a call to {@link FormRendererInterface::renderBlock()}.
 *
 * The function name is used as block name. For example, if the function name
 * is "foo", the block "foo" will be rendered.
 *
 * @author Bernhard Schussek <[email protected]>
 */
class RenderBlockNode extends \Twig_Node_Expression_Function
{
    public function compile(\Twig_Compiler $compiler)
    {
        $compiler->addDebugInfo($this);
        $arguments = iterator_to_array($this->getNode('arguments'));
        $compiler->write('$this->env->getExtension(\'form\')->renderer->renderBlock(');

        if (isset($arguments[0])) {
            $compiler->subcompile($arguments[0]);
            $compiler->raw(', \'' . $this->getAttribute('name') . '\'');

            if (isset($arguments[1])) {
                $compiler->raw(', ');
                $compiler->subcompile($arguments[1]);
            }
        }

        $compiler->raw(')');
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.54 PM
root / root
0755
FormEnctypeNode.php
0.863 KB
18 Dec 2019 11.24 AM
root / root
0644
FormThemeNode.php
1.061 KB
18 Dec 2019 11.24 AM
root / root
0644
RenderBlockNode.php
1.18 KB
18 Dec 2019 11.24 AM
root / root
0644
SearchAndRenderBlockNode.php
4.391 KB
18 Dec 2019 11.24 AM
root / root
0644
StopwatchNode.php
1.304 KB
18 Dec 2019 11.24 AM
root / root
0644
TransDefaultDomainNode.php
0.813 KB
18 Dec 2019 11.24 AM
root / root
0644
TransNode.php
3.319 KB
18 Dec 2019 11.24 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF