DmitryDulepov\Realurl\Decoder\UrlDecoder::decodeUrlParameterBlockUsingLookupTable PHP Method

decodeUrlParameterBlockUsingLookupTable() protected method

Sets segment value as is to the request variables
protected decodeUrlParameterBlockUsingLookupTable ( array $configuration, $getVarValue, array &$requestVariables ) : boolean
$configuration array
$getVarValue
$requestVariables array
return boolean
    protected function decodeUrlParameterBlockUsingLookupTable(array $configuration, $getVarValue, array &$requestVariables)
    {
        $result = FALSE;
        if (isset($configuration['lookUpTable'])) {
            $value = $this->convertAliasToId($configuration['lookUpTable'], $getVarValue);
            if (!MathUtility::canBeInterpretedAsInteger($value) && $value === $getVarValue) {
                if ($configuration['lookUpTable']['enable404forInvalidAlias']) {
                    $this->throw404('Could not map alias "' . $value . '" to an id.');
                }
            } else {
                $requestVariables[$configuration['GETvar']] = $value;
                $result = TRUE;
            }
        }
        return $result;
    }