Latte\Runtime\FilterExecutor::add PHP Method

add() public method

Registers run-time filter.
public add ( $name, $callback ) : static
return static
    public function add($name, $callback)
    {
        if ($name == NULL) {
            // intentionally ==
            array_unshift($this->_dynamic, $callback);
        } else {
            $name = strtolower($name);
            $this->_static[$name] = [$callback, NULL];
            unset($this->{$name});
        }
        return $this;
    }