You are here

public function CheeseburgerMenuItem::hasChild in Cheeseburger Menu 5.0.x

Returns whether menu item has child or not.

Return value

bool TRUE if has child, FALSE otherwise.

1 call to CheeseburgerMenuItem::hasChild()
CheeseburgerMenuItem::applySettings in src/CheeseburgerMenuItem.php
Applies given settings to menu item.

File

src/CheeseburgerMenuItem.php, line 295

Class

CheeseburgerMenuItem
Cheeseburger menu item class.

Namespace

Drupal\cheeseburger_menu

Code

public function hasChild() {
  return count($this->children) > 0;
}