Issue Bug Closed

#107524Extending SiteLanguage - Configuration access via Fluid

Robert Winter 09/23/25, 10:28 updated 12/02/25, 13:04

Description

I’ve extended the site language config with a custom field and wanted to access this field via Fluid.

{language.configuration.customfield}

This leads to following error.

Cannot access protected property TYPO3\CMS\Core\Site\Entity\SiteLanguage::$configuration

The problem seems to be the missing getConfiguration method in typo3\cms-core\Classes\Site\Entity\SiteLanguage.php which is e.g. existend in typo3\cms-core\Classes\Site\Entity\Site.php

/**
 * Returns the whole configuration for this site
 */
public function getConfiguration(): array
{
  return $this->configuration;
}

Reviews 2