Adds a function
public addFunction ( string $name, mixed $function ) : SassFunctionDefinitionNode | ||
$name | string | name of function |
$function | mixed | |
return | SassFunctionDefinitionNode | the function |
/** * Parse this node. * Add this function to the current context. * @param SassContext $context the context in which this node is parsed * @return array the parsed node - an empty array */ public function parse($context) { $context->addFunction($this->name, $this); return array(); }