LightnCandy\Validator::isBlockHelper PHP Method

isBlockHelper() protected static method

detect for block custom helper
protected static isBlockHelper ( array\arraystring | integer> $context, arrayinteger | string | array> $vars ) : boolean | null
$context array\arraystring | integer>
$vars arrayinteger | string | array>
return boolean | null Return true when this token is block custom helper
    protected static function isBlockHelper($context, $vars)
    {
        if (!isset($vars[0][0])) {
            return;
        }
        if (!static::resolveHelper($context, $vars[0][0])) {
            return;
        }
        return true;
    }