Version 5.0.0 beta 9
This commit is contained in:
1 parent
214f649f1d
commit
56979f8ee8
202 files changed
+4403
-1123
No files matched your search
@@ -166,6 +166,12 @@ class Menu
|
||||
*/
|
||||
public function addSeparator(): self
|
||||
{
|
||||
/* Skip if there are no elements yet */
|
||||
if( !count( $this->elements ) )
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->elements[] = new Separator;
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user