You are here

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_menu

Code

public function addChild(CheeseburgerMenuItem $child) {
  $this->children[] = $child;
}