[TASK] Finalize L10nModeUpdater for enhanced l10n_modes
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / DataHandling / Localization / State.php
index e3b4976..8c8f437 100644 (file)
@@ -191,6 +191,14 @@ class State
         return json_encode($this->states);
     }
 
+    /**
+     * @return array
+     */
+    public function toArray(): array
+    {
+        return $this->states ?? [];
+    }
+
     /**
      * @return string[]
      */