public function countItemsInQueue($location, $zone = Zone::FRONTEND) { $count = 0; foreach ($this->queue as $widget) { if ($widget->getZone() === $zone && $widget->getLocation() === $location) { $count++; } } return $count; }