src/Configuration/ActionConfiguration.php
private function getDefaultRoutePath(): string
    {
        $pattern = $this
            ->adminConfiguration
            ->getParameter('routing_url_pattern')
        ;
        $path = str_replace('{admin}', $this->adminName, $pattern);
        $path = str_replace('{action}', $this->actionName, $path);

        if (in_array($this->actionName, ['edit', 'delete'])) {
            $path .= '/{id}';
        }

        return $path;
    }
private function getDefaultRoutePath(): string
    {
        $pattern = $this
            ->adminConfiguration
            ->getParameter('routing_url_pattern')
        ;
        $path = str_replace('{admin}', $this->adminName, $pattern);
        $path = str_replace('{action}', $this->actionName, $path);

        if (in_array($this->actionName, ['edit', 'delete'])) {
            $path .= '/{id}';
        }

        return $path;
    }
private function getDefaultRoutePath ( ) : string { $ pattern = $ this -> adminConfiguration -> getParameter ( 'routing_url_pattern' ) ; $ path = str_replace ( '{admin}' , $ this -> adminName , $ pattern ) ; $ path = str_replace ( '{action}' , $ this -> actionName , $ path ) ; if ( in_array ( $ this -> actionName , [ 'edit' , 'delete' ] ) ) { $ path .= '/{id}' ; } return $ path ; }
Return the default route path according to the action name.

@return string
Return the default route path according to the action name .