Habari\Method::dispatch_array PHP Метод

dispatch_array() публичный статический Метод

Dispatch a method, whether a filter or function
public static dispatch_array ( Callable | string $method, array $args = [] ) : boolean | mixed
$method Callable | string The method to call
$args array An array of arguments to be passed to the method
Результат boolean | mixed The return value from the dispatched method
    public static function dispatch_array($method, $args = array())
    {
        if (is_callable($method)) {
            return call_user_func_array($method, $args);
        } elseif (is_string($method)) {
            array_unshift($args, $method, false);
            return call_user_func_array(Method::create('\\Habari\\Plugins', 'filter'), $args);
        }
        return false;
    }