src/Menu/Services/MenuItemBuilder.php
private function extractPattern($item)
    {
        $pattern = '';

        if ($item->type == Menu::TYPE_ROUTE) {
            $pattern = '/'.preg_quote($item->target).'\.(.+)/';
        }

        return [$pattern];
    }
private function extractPattern($item)
    {
        $pattern = '';

        if ($item->type == Menu::TYPE_ROUTE) {
            $pattern = '/'.preg_quote($item->target).'\.(.+)/';
        }

        return [$pattern];
    }
@param Menu $item

@return array