DmitryDulepov\Realurl\Decoder\UrlDecoder::decodeUrlParameterBlockUsingNoMatch PHP Метод

decodeUrlParameterBlockUsingNoMatch() защищенный Метод

Sets segment value as is to the request variables
protected decodeUrlParameterBlockUsingNoMatch ( array $configuration, $getVarValue, array &$requestVariables, array &$pathSegments, boolean $isFakeValue ) : boolean
$configuration array
$getVarValue
$requestVariables array
$pathSegments array
$isFakeValue boolean
Результат boolean
    protected function decodeUrlParameterBlockUsingNoMatch(array $configuration, $getVarValue, array &$requestVariables, array &$pathSegments, $isFakeValue)
    {
        $result = FALSE;
        if ($configuration['noMatch'] == 'bypass') {
            // If no match and "bypass" is set, then return the value to $pathSegments and break
            if (!$isFakeValue) {
                array_unshift($pathSegments, $getVarValue);
            }
            $result = TRUE;
        } elseif ($configuration['noMatch'] == 'null') {
            // If no match and "null" is set, then break (without setting any value!)
            $result = TRUE;
        }
        return $result;
    }