mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
565704141c
commit
4921b1a62e
@ -40,6 +40,26 @@ class NavigationController extends Controller
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the label for the given navigation item type
|
||||||
|
*
|
||||||
|
* @param string $type
|
||||||
|
*
|
||||||
|
* @return string It's $type if no label can be found
|
||||||
|
*/
|
||||||
|
protected function getItemLabel($type)
|
||||||
|
{
|
||||||
|
if (isset($this->moduleItemTypes[$type]['label'])) {
|
||||||
|
return $this->moduleItemTypes[$type]['label'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($this->defaultItemTypes[$type]['label'])) {
|
||||||
|
return $this->defaultItemTypes[$type]['label'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $type;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a list of available navigation item types
|
* Return a list of available navigation item types
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user