src/Configuration/ActionConfiguration.php
private function generateRouteName(): string
    {
        if (!array_key_exists($this->actionName, $this->adminConfiguration->getParameter('actions'))) {
            throw new Exception(
                sprintf('Invalid action name %s for admin %s (available action are: %s)',
                    $this->actionName,
                    $this->adminName,
                    implode(', ', array_keys($this->adminConfiguration->getParameter('actions'))))
            );
        }
        $routeName = RoutingLoader::generateRouteName(
            $this->adminName,
            $this->actionName,
            $this->adminConfiguration->getParameter('routing_name_pattern')
        );

        return $routeName;
    }
private function generateRouteName(): string
    {
        if (!array_key_exists($this->actionName, $this->adminConfiguration->getParameter('actions'))) {
            throw new Exception(
                sprintf('Invalid action name %s for admin %s (available action are: %s)',
                    $this->actionName,
                    $this->adminName,
                    implode(', ', array_keys($this->adminConfiguration->getParameter('actions'))))
            );
        }
        $routeName = RoutingLoader::generateRouteName(
            $this->adminName,
            $this->actionName,
            $this->adminConfiguration->getParameter('routing_name_pattern')
        );

        return $routeName;
    }
private function generateRouteName ( ) : string { if ( ! array_key_exists ( $ this -> actionName , $ this -> adminConfiguration -> getParameter ( 'actions' ) ) ) { throw new Exception ( sprintf ( 'Invalid action name %s for admin %s (available action are: %s)' , $ this -> actionName , $ this -> adminName , implode ( ', ' , array_keys ( $ this -> adminConfiguration -> getParameter ( 'actions' ) ) ) ) ) ; } $ routeName = RoutingLoader :: generateRouteName ( $ this -> adminName , $ this -> actionName , $ this -> adminConfiguration -> getParameter ( 'routing_name_pattern' ) ) ; return $ routeName ; }
Generate an admin route name using the pattern in the configuration.

@return string

@throws Exception
Generate an admin route name using the pattern in the configuration .