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);
}