private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct)
    {
        $languageCodes = [
            $contentUpdateStruct->initialLanguageCode => true,
        ];

        foreach ($contentUpdateStruct->fields as $field) {
            if ($field->languageCode === null || isset($languageCodes[$field->languageCode])) {
                continue;
            }

            $languageCodes[$field->languageCode] = true;
        }

        return array_keys($languageCodes);
    }
private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct)
    {
        $languageCodes = [
            $contentUpdateStruct->initialLanguageCode => true,
        ];

        foreach ($contentUpdateStruct->fields as $field) {
            if ($field->languageCode === null || isset($languageCodes[$field->languageCode])) {
                continue;
            }

            $languageCodes[$field->languageCode] = true;
        }

        return array_keys($languageCodes);
    }
private function getUpdatedLanguageCodes ( APIContentUpdateStruct $ contentUpdateStruct ) { $ languageCodes = [ $ contentUpdateStruct -> initialLanguageCode => true , ] ; foreach ( $ contentUpdateStruct -> fields as $ field ) { if ( $ field -> languageCode === null || isset ( $ languageCodes [ $ field -> languageCode ] ) ) { continue ; } $ languageCodes [ $ field -> languageCode ] = true ; } return array_keys ( $ languageCodes ) ; }
Returns only updated language codes.

@param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct

@return array
Returns only updated language codes .