private function getOptions(): ?array
    {
        $requestOptions = $this->requestStack->getCurrentRequest()->get('options');

        if (is_null($requestOptions)) {
            return null;
        }

        $requestOptions = explode(',', $requestOptions);
        $options = [];
        foreach ($requestOptions as $requestOption) {
            $requestOption = explode('|', $requestOption);
            $fieldHandle = array_shift($requestOption);
            $options[$fieldHandle] = [];
            foreach ($requestOption as $option) {
                $keyValue = explode(':', $option);
                $options[$fieldHandle][$keyValue[0]] = $keyValue[1];
            }
        }

        return $options;
    }
private function getOptions(): ?array
    {
        $requestOptions = $this->requestStack->getCurrentRequest()->get('options');

        if (is_null($requestOptions)) {
            return null;
        }

        $requestOptions = explode(',', $requestOptions);
        $options = [];
        foreach ($requestOptions as $requestOption) {
            $requestOption = explode('|', $requestOption);
            $fieldHandle = array_shift($requestOption);
            $options[$fieldHandle] = [];
            foreach ($requestOption as $option) {
                $keyValue = explode(':', $option);
                $options[$fieldHandle][$keyValue[0]] = $keyValue[1];
            }
        }

        return $options;
    }
private function getOptions ( ) : ? array { $ requestOptions = $ this -> requestStack -> getCurrentRequest ( ) -> get ( 'options' ) ; if ( is_null ( $ requestOptions ) ) { return null ; } $ requestOptions = explode ( ',' , $ requestOptions ) ; $ options = [ ] ; foreach ( $ requestOptions as $ requestOption ) { $ requestOption = explode ( '|' , $ requestOption ) ; $ fieldHandle = array_shift ( $ requestOption ) ; $ options [ $ fieldHandle ] = [ ] ; foreach ( $ requestOption as $ option ) { $ keyValue = explode ( ':' , $ option ) ; $ options [ $ fieldHandle ] [ $ keyValue [ 0 ] ] = $ keyValue [ 1 ] ; } } return $ options ; }
This is gets the potential parameters from the section info request.

It will transform this:
?options=someRelationshipFieldHandle|limit:100|offset:0

Into this:
['someRelationshipFieldHandle'] => [
'limit' => 100,
'offset' => 0
]

@return array|null
This is gets the potential parameters from the section info request .