Loads and returns an entity object from a guid.
public get ( integer $guid, string $type = '' ) : ElggEntit\ElggEntity | stdClas\stdClass | false | ||
$guid | integer | The GUID of the entity |
$type | string | The type of the entity. If given, even an existing entity with the given GUID will not be returned unless its type matches. |
return | ElggEntit\ElggEntity | stdClas\stdClass | false | The correct Elgg or custom object based upon entity type and subtype |