DataviewExtensionHook: we always want an array
This way implementors do not need to care
This commit is contained in:
parent
35d3342b05
commit
ff2c96e553
|
@ -5,5 +5,12 @@ namespace Icinga\Module\Monitoring\Hook;
|
|||
|
||||
abstract class DataviewExtensionHook
|
||||
{
|
||||
abstract public function getAdditionalQueryColumns($queryName);
|
||||
public function getAdditionalQueryColumns($queryName)
|
||||
{
|
||||
$cols = $this->provideAdditionalQueryColumns($queryName);
|
||||
|
||||
return $cols;
|
||||
}
|
||||
|
||||
abstract public function provideAdditionalQueryColumns($queryName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue