FluidTYPO3\Vhs\ViewHelpers\Page\LanguageMenuViewHelper::getLanguageUrl PHP Method

getLanguageUrl() protected method

Get link of language menu entry
protected getLanguageUrl ( $uid ) : string
$uid
return string
    protected function getLanguageUrl($uid)
    {
        $excludedVars = trim((string) $this->arguments['excludeQueryVars']);
        $config = ['parameter' => $this->getPageUid(), 'returnLast' => 'url', 'additionalParams' => '&L=' . $uid, 'useCacheHash' => $this->arguments['useCHash'], 'addQueryString' => 1, 'addQueryString.' => ['method' => 'GET', 'exclude' => 'id,L,cHash' . ($excludedVars ? ',' . $excludedVars : '')]];
        if (true === is_array($this->arguments['configuration'])) {
            $config = $this->mergeArrays($config, $this->arguments['configuration']);
        }
        return $this->cObj->typoLink('', $config);
    }