Elgg  Version 6.1
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Default object HTML view for autocomplete items. More...
 
if(!$entity instanceof\ElggObject) $input_name = elgg_extract('input_name', $vars)
 
if(empty($input_name)) $icon = ''
 
if($entity->hasIcon('tiny')) $delete_icon = elgg_view_icon('delete', ['class' => 'elgg-autocomplete-item-remove'])
 
 $body = elgg_view_image_block($icon, $entity->getDisplayName(), ['image_alt' => $delete_icon])
 

Variable Documentation

$body = elgg_view_image_block($icon, $entity->getDisplayName(), ['image_alt' => $delete_icon])

Definition at line 26 of file default.php.

if ($entity->hasIcon('tiny')) $delete_icon = elgg_view_icon('delete', ['class' => 'elgg-autocomplete-item-remove'])

Definition at line 24 of file default.php.

$entity = elgg_extract('entity', $vars)

Default object HTML view for autocomplete items.

$vars['entity'] the selected entity $vars['input_name'] name of the returned data array

Definition at line 9 of file default.php.

if (empty($input_name)) $icon = ''

Definition at line 19 of file default.php.

if (!$entity instanceof\ElggObject) $input_name = elgg_extract('input_name', $vars)

Definition at line 14 of file default.php.