src/UrlGenerator.php
public function action($action, $parameters = [], array $query = [])
    {
        $callback = function (Route $route) use ($action) {

            return $route->getActionName() === $action && $route->acceptedVerb('GET');
        };

        $route = $this->getRouteCollection()->firstOrFail($callback);

        return $this->to($route->toUri((array) $parameters), $query);
    }
public function action($action, $parameters = [], array $query = [])
    {
        $callback = function (Route $route) use ($action) {

            return $route->getActionName() === $action && $route->acceptedVerb('GET');
        };

        $route = $this->getRouteCollection()->firstOrFail($callback);

        return $this->to($route->toUri((array) $parameters), $query);
    }
public function action ( $ action , $ parameters = [ ] , array $ query = [ ] ) { $ callback = function ( Route $ route ) use ( $ action ) { return $ route -> getActionName ( ) === $ action && $ route -> acceptedVerb ( 'GET' ) ; } ; $ route = $ this -> getRouteCollection ( ) -> firstOrFail ( $ callback ) ; return $ this -> to ( $ route -> toUri ( ( array ) $ parameters ) , $ query ) ; }
Generate url via string action

@param string $action
@param string|array $parameters
@param array $query
Generate url via string action