isRegistered(self::ID)) { $config = $this->get(self::ID); if (isset($config[self::RTL])) { $allLocales = array_unique(array_merge($allLocales, $config[self::RTL])); } } $this->register( self::ID, [ self::RTL => $allLocales ] ); } public function getRtlLocales(): array { if (!$this->isRegistered(self::ID) && !isset($this->get(self::ID)[self::RTL])) { return []; } return $this->get(self::ID)[self::RTL]; } }