Elgg\Database\SubtypeTable::getClass PHP Method

getClass() public method

Entities can be registered to always be loaded as a certain class with add_subtype() or update_subtype(). This function returns the class name if found and null if not.
See also: get_subtype_from_id()
See also: get_subtype_class_from_id()
public getClass ( string $type, string $subtype ) : string | null
$type string The type
$subtype string The subtype
return string | null a class name or null
    public function getClass($type, $subtype)
    {
        $obj = $this->retrieveFromCache($type, $subtype);
        return $obj ? $obj->class : null;
    }