12 'property_type' =>
'metadata',
16 'fields' => [
'metadata' => [
'name',
'username']],
40 $options[
'metadata_name_value_pairs'][] = [
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
get_entity(int $guid)
Loads and returns an entity object from a guid.
Thrown when entity can not be edited or container permissions do not allow it to be written...
elgg_view_page(string $title, string|array $body, string $page_shell= 'default', array $vars=[])
Assembles and outputs a full page.
if(elgg_extract('friends_only', $vars, false)) if(!(bool) elgg_extract('include_banned', $vars, true)) $body
elgg_list_entities(array $options=[], callable $getter=null, callable $viewer=null)
Returns a string of rendered entities.
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.