public function renderAsDropdown($plugin, array $titleOptions = [])
    {
        return array_map(function ($menu) use ($titleOptions) {
            $titleOptions = optionsParser($menu['titleOptions'], $titleOptions);
            $links = $this->buildLinks($menu['links'], ['class' => 'dropdown-item']);

            return $this->Dropdown->menu($menu['title'], $links, $titleOptions->toArray());
        }, $this->generate($plugin));
    }