$entity
Object chip Renders a simple image block with an icon and title.
if(!isset($icon)) $params
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=[])
View the icon of an entity.
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
elgg echo
Translates a string.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
if(!$entity instanceof ElggEntity) $title