Elgg  Version 3.0
link.php
Go to the documentation of this file.
1 <?php
11 if (!$item instanceof ElggEntity) {
12  return;
13 }
14 
15 echo elgg_view('output/url', [
16  'href' => $item->getURL(),
17  'text' => $item->getDisplayName(),
18 ]);
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246