public function augmentUrlByBackParam(array $url): array
    {
        $backAction = $this->request->getRequestTarget();
        if ($this->request->is('ajax')) {
            $backAction = $this->request->referer(true);
        }
        $backAction = preg_replace('/back_action=.*?(&|$)/', '', $backAction);

        $url['?']['back_action'] = preg_replace('/\\?$/', '', $backAction);

        return $url;
    }
public function augmentUrlByBackParam(array $url): array
    {
        $backAction = $this->request->getRequestTarget();
        if ($this->request->is('ajax')) {
            $backAction = $this->request->referer(true);
        }
        $backAction = preg_replace('/back_action=.*?(&|$)/', '', $backAction);

        $url['?']['back_action'] = preg_replace('/\\?$/', '', $backAction);

        return $url;
    }
public function augmentUrlByBackParam ( array $ url ) : array { $ backAction = $ this -> request -> getRequestTarget ( ) ; if ( $ this -> request -> is ( 'ajax' ) ) { $ backAction = $ this -> request -> referer ( true ) ; } $ backAction = preg_replace ( '/back_action=.*?(&|$)/' , '' , $ backAction ) ; $ url [ '?' ] [ 'back_action' ] = preg_replace ( '/\\?$/' , '' , $ backAction ) ; return $ url ; }
Adds a back action get param to an url array

@param array $url URL array
@return array
Adds a back action get param to an url array