protected function createNavbarMenuItemClass(AbstractPage $page, $addClassToLi, $depth)
    {
        // Render li tag and page
        $liClasses = [];

        // Is page active
        if ($page->isActive()) {
            $liClasses[] = 'active';
        }

        // Does page have children
        if ($page->hasPages() && $depth < self::MAX_RENDER_DEPTH) {
            $liClasses[] = 'dropdown';
        }

        // Add page class
        if ($addClassToLi && $page->getClass()) {
            $liClasses[] = $page->getClass();
        }

        // Create li
        if ($liClasses) {
            return ' class="' . implode(' ', $liClasses) . '"';
        }

        return '';
    }