Crud\Listener\RedirectListener::_getUrl PHP Méthode

_getUrl() protected méthode

Expand configurations where possible and replace the placeholder with the actual value
protected _getUrl ( Crud\Event\Subject $subject, array $url ) : array
$subject Crud\Event\Subject Subject
$url array URL
Résultat array
    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;
    }