18 if (
$item->getLinkClass()) {
19 $vars[
'class'] = array_merge(
$vars[
'class'], explode(
' ',
$item->getLinkClass()));
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.