Elgg\Database\SubtypeTable::retrieveFromCache PHP Method

retrieveFromCache() public method

Retrieve subtype from the cache.
public retrieveFromCache ( string $type, string $subtype ) : stdClass | null
$type string
$subtype string
return stdClass | null
    public function retrieveFromCache($type, $subtype)
    {
        foreach ($this->getPopulatedCache() as $obj) {
            if ($obj->type === $type && $obj->subtype === $subtype) {
                return $obj;
            }
        }
        return null;
    }