Elgg
Version master
views
json
user
default.php
Go to the documentation of this file.
1
<?php
6
$entity
=
elgg_extract
(
'entity'
,
$vars
);
7
if
(!
$entity
instanceof
ElggEntity
) {
8
return
;
9
}
10
11
echo json_encode(
$entity
->toObject());
ElggEntity
Definition:
ElggEntity.php:52
$entity
$entity
Generic icon view.
Definition:
default.php:13
$vars
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition:
default.php:25
elgg_extract
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:256
Generated on Fri Aug 29 2025 00:01:59 for Elgg by
1.9.1