38 '#type' =>
'checkbox',
39 '#label' =>
elgg_echo(
'entity:edit:icon:remove:label'),
40 '#class' =>
'elgg-entity-edit-icon-remove',
if(elgg_extract('show_remove', $vars, true)===false) $entity
Show a remove icon toggle.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
if(!$entity instanceof ElggEntity) $icon_type
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
if(!$entity->hasIcon($size, $icon_type)) $name
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.