Change record status: 
Project: 
Introduced in branch: 
10.3.x
Introduced in version: 
10.3.0
Description: 

Since #2575105: Use cache collector for state, State service is using a cache collector, the recommended usage of State API has changed. See Change record.

Given that development settings toggles usage is infrequent, they have been moved to regular key/value storage.

Before

$twig_debug = \Drupal::state()->get('twig_debug');
$twig_cache_disabled = \Drupal::state()->get('twig_cache_disabled');
$disable_rendered_output_cache_bins = \Drupal::state()->get('disable_rendered_output_cache_bins');

After

$twig_debug = \Drupal::keyValue('development_settings')->get('twig_debug');
$twig_cache_disabled = \Drupal::keyValue('development_settings')->get('twig_cache_disable');
$disable_rendered_output_cache_bins = \Drupal::keyValue('development_settings')->get('disable_rendered_output_cache_bins');
Impacts: 
Module developers