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

encodeUrlParameterBlockUsingNoMatch() protected method

Uses 'noMatch' options to set the segment.
protected encodeUrlParameterBlockUsingNoMatch ( string $getVarName, string $getVarValue, array $configuration, array &$segments, string &$previousValue ) : boolean
$getVarName string
$getVarValue string
$configuration array
$segments array
$previousValue string
return boolean
    protected function encodeUrlParameterBlockUsingNoMatch($getVarName, $getVarValue, array $configuration, array &$segments, &$previousValue)
    {
        $result = FALSE;
        if (isset($configuration['noMatch'])) {
            if ($configuration['noMatch'] === 'bypass') {
                $result = TRUE;
            } elseif ($configuration['noMatch'] === 'null') {
                $previousValue = '';
                $segments[] = '';
                $result = TRUE;
            }
        }
        return $result;
    }