IcingaObject(Legacy): Add getLegacyObjectType function
So the type rendered to the object header can get overwritten. refs #12919
This commit is contained in:
parent
802b923df6
commit
a2151fd9d1
|
@ -1955,9 +1955,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getLegacyObjectType()
|
||||||
|
{
|
||||||
|
return strtolower($this->getType());
|
||||||
|
}
|
||||||
|
|
||||||
protected function renderLegacyObjectHeader()
|
protected function renderLegacyObjectHeader()
|
||||||
{
|
{
|
||||||
$type = strtolower($this->getType());
|
$type = $this->getLegacyObjectType();
|
||||||
|
|
||||||
if ($this->isTemplate()) {
|
if ($this->isTemplate()) {
|
||||||
$name = c1::renderKeyValue(
|
$name = c1::renderKeyValue(
|
||||||
|
|
Loading…
Reference in New Issue