IcingaObject(Legacy): Add getLegacyObjectType function

So the type rendered to the object header can get overwritten.

refs #12919
This commit is contained in:
Markus Frosch 2016-10-14 10:07:17 +02:00
parent 802b923df6
commit a2151fd9d1
1 changed files with 6 additions and 1 deletions

View File

@ -1955,9 +1955,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
);
}
protected function getLegacyObjectType()
{
return strtolower($this->getType());
}
protected function renderLegacyObjectHeader()
{
$type = strtolower($this->getType());
$type = $this->getLegacyObjectType();
if ($this->isTemplate()) {
$name = c1::renderKeyValue(