83 files declare their use of StateInterface

AliasWhitelist.php in core/modules/path_alias/src/AliasWhitelist.php
AssetQueryString.php in core/lib/Drupal/Core/Asset/AssetQueryString.php
AutomatedCron.php in core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php
BrokenInboundPathProcessor.php in core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php
CacheableMetadataCalculationTest.php in core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php
CommentStatistics.php in core/modules/comment/src/CommentStatistics.php
ContentModerationStateTest.php in core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
CredentialForm.php in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Cron.php in core/lib/Drupal/Core/Cron.php
CronForm.php in core/modules/system/src/Form/CronForm.php
CronSuspendQueueDelayTest.php in core/tests/Drupal/Tests/Core/Cron/CronSuspendQueueDelayTest.php
CssCollectionOptimizer.php in core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php
CssCollectionOptimizerUnitTest.php in core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerUnitTest.php
CssCollectionRenderer.php in core/lib/Drupal/Core/Asset/CssCollectionRenderer.php
CssCollectionRendererUnitTest.php in core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
DbUpdateController.php in core/modules/system/src/Controller/DbUpdateController.php
DeletedFieldsRepository.php in core/lib/Drupal/Core/Field/DeletedFieldsRepository.php
DeletedWorkspaceConstraintValidator.php in core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php
DrupalSqlBase.php in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
EntityComment.php in core/modules/comment/src/Plugin/migrate/destination/EntityComment.php
EntityComputedFieldTest.php in core/modules/system/tests/src/Functional/Entity/EntityComputedFieldTest.php
EntitySchemaSubscriber.php in core/modules/system/tests/modules/entity_test_update/src/EventSubscriber/EntitySchemaSubscriber.php
EntityTestDefinitionSubscriber.php in core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php
EntityTestResourceTestBase.php in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestResourceTestBase.php
EventSubscriber.php in core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php
EventSubscriber.php in core/modules/config/tests/config_events_test/src/EventSubscriber.php
EventSubscriber.php in core/modules/config/tests/config_transformer_test/src/EventSubscriber.php
EventSubscriber.php in core/modules/config/tests/config_import_test/src/EventSubscriber.php
EventSubscriber.php in core/modules/language/tests/language_events_test/src/EventSubscriber.php
ExtensionList.php in core/lib/Drupal/Core/Extension/ExtensionList.php
ExtensionListTest.php in core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php
Feed.php in core/modules/views/src/Plugin/views/display/Feed.php
FileTestSaveUploadFromForm.php in core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php
HelpSearch.php in core/modules/help/src/Plugin/Search/HelpSearch.php
IncrementalForm.php in core/modules/migrate_drupal_ui/src/Form/IncrementalForm.php
InstallHelper.php in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
JsCollectionOptimizer.php in core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php
JsCollectionRenderer.php in core/lib/Drupal/Core/Asset/JsCollectionRenderer.php
LinearHistory.php in core/lib/Drupal/Core/Config/Checkpoint/LinearHistory.php
LinearHistoryTest.php in core/tests/Drupal/Tests/Core/Config/Checkpoint/LinearHistoryTest.php
MaintenanceMode.php in core/lib/Drupal/Core/Site/MaintenanceMode.php
MatcherDumper.php in core/lib/Drupal/Core/Routing/MatcherDumper.php
MigrateUpgradeFormBase.php in core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php
ModuleExtensionList.php in core/lib/Drupal/Core/Extension/ModuleExtensionList.php
Node.php in core/modules/node/src/Plugin/migrate/source/d6/Node.php
Node.php in core/modules/node/src/Plugin/migrate/source/d7/Node.php
NodeStatisticsDatabaseStorage.php in core/modules/statistics/src/NodeStatisticsDatabaseStorage.php
NodeTranslationExceptionSubscriber.php in core/modules/node/src/EventSubscriber/NodeTranslationExceptionSubscriber.php
NodeTranslationMigrateSubscriber.php in core/modules/node/src/EventSubscriber/NodeTranslationMigrateSubscriber.php
Page.php in core/modules/views/src/Plugin/views/display/Page.php
PathPluginBase.php in core/modules/views/src/Plugin/views/display/PathPluginBase.php
PathRootsSubscriber.php in core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php
PerformanceTestRecorder.php in core/lib/Drupal/Core/Test/PerformanceTestRecorder.php
PluginManagerCacheClearer.php in core/modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php
PluralFormula.php in core/modules/locale/src/PluralFormula.php
PrivateKey.php in core/lib/Drupal/Core/PrivateKey.php
RestExport.php in core/modules/rest/src/Plugin/views/display/RestExport.php
ReviewForm.php in core/modules/migrate_drupal_ui/src/Form/ReviewForm.php
RoutePreloader.php in core/lib/Drupal/Core/Routing/RoutePreloader.php
RouteProvider.php in core/lib/Drupal/Core/Routing/RouteProvider.php
RouteSubscriber.php in core/modules/views/src/EventSubscriber/RouteSubscriber.php
SiteMaintenanceModeForm.php in core/modules/system/src/Form/SiteMaintenanceModeForm.php
SqlBase.php in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
SqlContentEntityStorageSchemaColumnTest.php in core/modules/field/tests/src/Kernel/Entity/Update/SqlContentEntityStorageSchemaColumnTest.php
TableDragTestForm.php in core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php
TestAccessBlock.php in core/modules/block/tests/modules/block_test/src/Plugin/Block/TestAccessBlock.php
TestClass.php in core/modules/system/tests/modules/service_provider_test/src/TestClass.php
TestSystemLoggerChannel.php in core/modules/system/tests/modules/advisory_feed_test/src/TestSystemLoggerChannel.php
TestToolkit.php in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
TestWaitTerminateMiddleware.php in core/lib/Drupal/Core/Test/StackMiddleware/TestWaitTerminateMiddleware.php
ThemeExtensionList.php in core/lib/Drupal/Core/Extension/ThemeExtensionList.php
ThemeInstaller.php in core/lib/Drupal/Core/Extension/ThemeInstaller.php
TranslateFormBase.php in core/modules/locale/src/Form/TranslateFormBase.php
TranslationStatusForm.php in core/modules/locale/src/Form/TranslationStatusForm.php
TwigEnvironment.php in core/lib/Drupal/Core/Template/TwigEnvironment.php
UpdateManagerUpdate.php in core/modules/update/src/Form/UpdateManagerUpdate.php
UpdateProcessor.php in core/modules/update/src/UpdateProcessor.php
UpdateReady.php in core/modules/update/src/Form/UpdateReady.php
Variable.php in core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php
VariableTranslation.php in core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php
VariableTranslation.php in core/modules/migrate_drupal/src/Plugin/migrate/source/d7/VariableTranslation.php
ViewsLocalTask.php in core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
WorkspaceManager.php in core/modules/workspaces/src/WorkspaceManager.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.