Elgg  Version 6.0
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 
if(!$entity instanceof\ElggUser) $input_name = elgg_extract('input_name', $vars)
 
 $viewtype = elgg_get_viewtype()
 
 $icon
 
 $label = elgg_view_image_block($icon, $entity->getDisplayName(), ['class' => 'elgg-autocomplete-item'])
 
 $data = $entity->toObject()
 
$data label = $label
 
$data value = $entity->username
 
$data icon = $icon
 
 if ($input_name)
 

Variable Documentation

$data = $entity->toObject()

Definition at line 22 of file default.php.

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

Definition at line 3 of file default.php.

$icon
Initial value:
'use_link' => false,
'href' => false,
'use_hover' => false,
])
elgg_view_entity_icon(\ElggEntity $entity, string $size= 'medium', array $vars=[])
View the icon of an entity.
Definition: views.php:542
$entity
Generic icon view.
Definition: default.php:13

Definition at line 14 of file default.php.

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

Definition at line 8 of file default.php.

$label = elgg_view_image_block($icon, $entity->getDisplayName(), ['class' => 'elgg-autocomplete-item'])

Definition at line 20 of file default.php.

$viewtype = elgg_get_viewtype()

Definition at line 11 of file default.php.

$data icon = $icon

Definition at line 25 of file default.php.

if($input_name)

Definition at line 27 of file default.php.

$data label = $label

Definition at line 23 of file default.php.

$data value = $entity->username

Definition at line 24 of file default.php.