Skip to content

Commit b6724fb

Browse files
committed
Add method to count the existing tabs
1 parent 61b8be8 commit b6724fb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

wcfsetup/install/files/lib/system/view/component/ContentInteractionTabsComponent.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public function render(): string
4747
],
4848
);
4949
}
50+
51+
public function countTabs(): int
52+
{
53+
return \count($this->tabs);
54+
}
5055
}
5156

5257
/** @internal */

0 commit comments

Comments
 (0)