Timber\PostGetter::is_post_class_or_class_map PHP Method

is_post_class_or_class_map() public static method

public static is_post_class_or_class_map ( string | array $arg ) : boolean
$arg string | array
return boolean
    public static function is_post_class_or_class_map($arg)
    {
        $maybe_type = self::get_class_for_use_as_timber_post($arg);
        if (is_array($arg) && isset($arg['post_type'])) {
            //the user has passed a true WP_Query-style query array that needs to be used later, so the $arg is not a class map or post class
            return false;
        }
        if ($maybe_type) {
            return true;
        }
        return false;
    }