src/Listener/RedirectListener.php
protected function _getUrl(Subject $subject, array $url)
    {
        foreach ($url as $key => $value) {
            if (!is_array($value)) {
                continue;
            }

            if ($key === '?') {
                $url[$key] = $this->_getUrl($subject, $value);
                continue;
            }

            $url[$key] = $this->_getKey($subject, $value[0], $value[1]);
        }

        return $url;
    }
protected function _getUrl(Subject $subject, array $url)
    {
        foreach ($url as $key => $value) {
            if (!is_array($value)) {
                continue;
            }

            if ($key === '?') {
                $url[$key] = $this->_getUrl($subject, $value);
                continue;
            }

            $url[$key] = $this->_getKey($subject, $value[0], $value[1]);
        }

        return $url;
    }
protected function _getUrl ( Subject $ subject , array $ url ) { foreach ( $ url as $ key => $ value ) { if ( ! is_array ( $ value ) ) { continue ; } if ( $ key === '?' ) { $ url [ $ key ] = $ this -> _getUrl ( $ subject , $ value ) ; continue ; } $ url [ $ key ] = $ this -> _getKey ( $ subject , $ value [ 0 ] , $ value [ 1 ] ) ; } return $ url ; }
Get the new redirect URL

Expand configurations where possible and replace the
placeholder with the actual value

@param \Crud\Event\Subject $subject Subject
@param array $url URL
@return array
@throws \Exception
Get the new redirect URL