Elgg  Version master
name.php
Go to the documentation of this file.
1 <?php
9 if (!$user instanceof \ElggUser) {
10  return;
11 }
12 
13 echo elgg_view_field([
14  '#type' => 'text',
15  '#label' => elgg_echo('name'),
16  'name' => 'name',
17  'value' => $user->name,
18 ]);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
$user
Provide a way of setting your full name.
Definition: name.php:8
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:23
$vars
Definition: theme.php:5