Nette\Bridges\FormsLatte\FormMacros::macroName PHP Method

macroName() public method

public macroName ( MacroNode $node, PhpWriter $writer )
$node Latte\MacroNode
$writer Latte\PhpWriter
    public function macroName(MacroNode $node, PhpWriter $writer)
    {
        if (!$node->prefix) {
            throw new CompileException("Unknown macro {{$node->name}}, use n:{$node->name} attribute.");
        } elseif ($node->prefix !== MacroNode::PREFIX_NONE) {
            throw new CompileException("Unknown attribute n:{$node->prefix}-{$node->name}, use n:{$node->name} attribute.");
        }
    }