diff --git a/src/Widget/Tabs.php b/src/Widget/Tabs.php index 082c3474..d75170f5 100644 --- a/src/Widget/Tabs.php +++ b/src/Widget/Tabs.php @@ -6,6 +6,7 @@ use Icinga\Web\Widget\Tabextension\DashboardAction; use Icinga\Web\Widget\Tabextension\MenuAction; use Icinga\Web\Widget\Tabextension\OutputFormat; +use Icinga\Web\Widget\Tabextension\Tabextension; use InvalidArgumentException; use ipl\Html\BaseHtmlElement; use ipl\Html\HtmlString; @@ -172,4 +173,18 @@ public function count() { return $this->tabs->count(); } + + /** + * Apply a Tabextension on $this->tabs object not on this class + * + * @param Tabextension $extension + * + * @return $this + */ + public function extend(Tabextension $extension) + { + $this->tabs->extend($extension); + + return $this; + } }