13 if (
$icon ===
false) {
$vars['class']
Display an icon from the FontAwesome library.
if($icon===false) if($icon!== '') $icon_size
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view_entity_icon(\ElggEntity $entity, string $size= 'medium', array $vars=[])
View the icon of an entity.
get_entity(int $guid)
Loads and returns an entity object from a guid.
if($icon_entity instanceof ElggEntity) $relationship
if(!$relationship instanceof ElggRelationship) $entity_one