DmitryDulepov\Realurl\Encoder\UrlEncoder::encodeUrlParameterBlock PHP Method

encodeUrlParameterBlock() protected method

Encodes pre- or postVars according to the given configuration.
protected encodeUrlParameterBlock ( array $configurationArray ) : string
$configurationArray array
return string
    protected function encodeUrlParameterBlock(array $configurationArray)
    {
        $segments = array();
        if ($this->hasUrlParameters($configurationArray)) {
            $previousValue = '';
            foreach ($configurationArray as $configuration) {
                // Technically it must always be array!
                $this->encodeSingleVariable($configuration, $previousValue, $segments);
            }
        }
        $this->checkForAllEmptySegments($segments);
        $this->fixEmptySegments($segments);
        return $segments;
    }