state

Same name in other branches
  1. 9 core/core.services.yml \state
  2. 8.9.x core/core.services.yml \state

Class

Drupal\Core\State\State

Tags

  • needs_destruction
75 string references to state
AliasTest::testWhitelist in core/modules/path_alias/tests/src/Kernel/AliasTest.php
Tests the alias whitelist.
AliasTest::testWhitelistCacheDeletionMidRequest in core/modules/path_alias/tests/src/Kernel/AliasTest.php
Tests situation where the whitelist cache is deleted mid-request.
AssetQueryStringTest::testResetGet in core/tests/Drupal/KernelTests/Core/Asset/AssetQueryStringTest.php
@covers ::get @covers ::reset
CacheableMetadataCalculationTest::create in core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php
Creates an instance of the plugin.
CacheableMetadataCalculationTest::setUp in core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\State\State
  2. arguments:
  3. - '@keyvalue'
  4. - '@cache.bootstrap'
  5. - '@lock'
  6. tags:
  7. - { name: needs_destruction }

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