diff --git a/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php b/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php index bb237ad09d..71bfbdbcdc 100644 --- a/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php +++ b/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php @@ -69,13 +69,8 @@ public function onResolveContentNameSchema(ResolveContentNameSchemaEvent $event) return; } - $languageList = array_map( - static fn (Language $language): string => $language->getLanguageCode(), - (array)$event->getContent()->getVersionInfo()->getLanguages() - ); - $tokenValues = $this->processEvent( - $languageList, + $event->getLanguageCodes(), $event->getSchemaIdentifiers()['field'], $event->getContentType(), $event->getContent(),