public function render($customTemplate = null)
    {
        $items = $this->generateItems($this->items);

        return $this->theme->render(
            $customTemplate,
            ['items' => $items, 'class' => $this->class],
            'menu'
        );
    }