> $entry The group's entries from the normalized settings map. * * @return \WPGraphQL\Model\SettingGroup * @throws \Exception */ protected function get_model( $entry, $key ) { return new SettingGroup( (string) $key, $entry ); } /** * {@inheritDoc} * * @param string[] $keys Normalized settings group keys. * @return array>|null> */ public function loadKeys( array $keys ) { $groups = DataSource::get_allowed_settings_by_group( \WPGraphQL::get_type_registry() ); $loaded = []; foreach ( $keys as $key ) { $loaded[ $key ] = ! empty( $groups[ $key ] ) ? $groups[ $key ] : null; } return $loaded; } }