Elgg  Version master
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());
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:254
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:25
$entity
Generic icon view.
Definition: default.php:13