public function CheeseburgerMenuItem::addChild in Cheeseburger Menu 5.0.x
Appends menu item child.
Parameters
\Drupal\cheeseburger_menu\CheeseburgerMenuItem $child: Menu item child.
File
- src/
CheeseburgerMenuItem.php, line 285
Class
- CheeseburgerMenuItem
- Cheeseburger menu item class.
Namespace
Drupal\cheeseburger_menuCode
public function addChild(CheeseburgerMenuItem $child) {
$this->children[] = $child;
}