public active ( ) : Caffeinated\Menus\Collection | ||
return | Caffeinated\Menus\Collection |
public function active()
{
$activeItems = array();
foreach ($this->items as $item) {
if ($item->data('active')) {
$activeItems[] = $item;
}
}
return $activeItems;
}