Search for state

  1. Search 7.x for state
  2. Search 9.5.x for state
  3. Search 8.9.x for state
  4. Search 11.x for state
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
State class core/modules/workflows/src/State.php A value object representing a workflow state.
state service core/core.services.yml Drupal\Core\State\State
State class core/lib/Drupal/Core/State/State.php Provides the state system using a key value store.

All search results

Title Object type File name Summary
Drupal\Core\Database\EventSubscriber\StatementExecutionSubscriber service core/core.services.yml
EndOfTransactionQueriesTest::getStatementsForTable function core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php Filters statements by table name.
EndOfTransactionQueriesTest::isStatementRelatedToTable function core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php Determines if a statement is relative to a specified table.
EntityComment::$state property core/modules/comment/src/Plugin/migrate/destination/EntityComment.php The state storage object.
EntityComputedFieldTest::$state property core/modules/system/tests/src/Functional/Entity/EntityComputedFieldTest.php The state service.
EntityKernelTestBase::$state property core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php The state service.
EntitySchemaSubscriber::$state property core/modules/system/tests/modules/entity_test_update/src/EventSubscriber/EntitySchemaSubscriber.php The state service.
EntityStateChangeValidationTest class core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php @coversDefaultClass \Drupal\content_moderation\Plugin\Validation\Constraint\ModerationStateConstraintValidator[[api-linebreak]]
@group content_moderation
EntityStateChangeValidationTest.php file core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
EntityStateChangeValidationTest::$adminUser property core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php An admin user.
EntityStateChangeValidationTest::$modules property core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Modules to install.
EntityStateChangeValidationTest::$usesSuperUserAccessPolicy property core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php @todo Remove and fix test to not rely on super user.
EntityStateChangeValidationTest::setUp function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
EntityStateChangeValidationTest::testExistingContentWithNoModeration function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Tests that content without prior moderation information can be moderated.
EntityStateChangeValidationTest::testExistingMultilingualContentWithNoModeration function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Tests that content without prior moderation information can be translated.
EntityStateChangeValidationTest::testInvalidState function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Tests validation with an invalid state.
EntityStateChangeValidationTest::testInvalidStateMultilingual function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Tests state transition validation with multiple languages.
EntityStateChangeValidationTest::testInvalidStateWithoutExisting function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Tests validation with no initial state or an invalid state.
EntityStateChangeValidationTest::testInvalidTransition function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Tests invalid transitions.
EntityStateChangeValidationTest::testTransitionAccessValidation function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php @dataProvider transitionAccessValidationTestCases
EntityStateChangeValidationTest::testValidTransition function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Tests valid transitions.
EntityStateChangeValidationTest::transitionAccessValidationTestCases function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Test cases for ::testTransitionAccessValidation.
EntityTestDefinitionSubscriber::$state property core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php The state service.
EntityTestResourceTestBase::$state property core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestResourceTestBase.php The state object.
EventSubscriber::$state property core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php The state key value store.
EventSubscriber::$state property core/modules/config/tests/config_events_test/src/EventSubscriber.php The state key value store.
EventSubscriber::$state property core/modules/config/tests/config_transformer_test/src/EventSubscriber.php The Drupal state.
EventSubscriber::$state property core/modules/config/tests/config_import_test/src/EventSubscriber.php The key value store.
ExceptionHandler::handleStatementException function core/lib/Drupal/Core/Database/ExceptionHandler.php Handles exceptions thrown during the preparation of statement objects.
ExtensionList::$state property core/lib/Drupal/Core/Extension/ExtensionList.php The state store.
FieldBlockTest::testStatesFieldBlock function core/modules/layout_builder/tests/src/FunctionalJavascript/FieldBlockTest.php Tests configuring a field block that uses #states.
FileTestSaveUploadFromForm::$state property core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php Stores the state storage service.
FormAjaxException::$formState property core/lib/Drupal/Core/Form/FormAjaxException.php The form state.
FormAjaxException::getFormState function core/lib/Drupal/Core/Form/FormAjaxException.php Gets the form state.
FormBuilderTest::formStateResponseProvider function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Provides test data for testHandleFormStateResponse().
FormBuilderTest::testHandleFormStateResponse function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the handling of FormStateInterface::$response.
FormCache::loadCachedFormState function core/lib/Drupal/Core/Form/FormCache.php Loads the cached form state.
FormCacheTest::$formState property core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php
FormCacheTest::$formStateCacheStore property core/tests/Drupal/Tests/Core/Form/FormCacheTest.php The expirable key value store used by form state cache.
FormCacheTest::$preserveGlobalState property core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
FormCacheTest::testLoadCachedFormState function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::loadCachedFormState[[api-linebreak]]
FormCacheTest::testLoadCachedFormStateWithFiles function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::loadCachedFormState[[api-linebreak]]
FormErrorHandler::setElementErrorsFromFormState function core/lib/Drupal/Core/Form/FormErrorHandler.php Stores errors and a list of child element errors directly on each element.
FormErrorHandlerTest::testSetElementErrorsFromFormState function core/tests/Drupal/Tests/Core/Form/FormErrorHandlerTest.php @covers ::handleFormErrors[[api-linebreak]]
@covers ::setElementErrorsFromFormState[[api-linebreak]]
FormHelper::processStates function core/lib/Drupal/Core/Form/FormHelper.php Adds JavaScript to change the state of an element based on another element.
FormHelper::processStatesArray function core/lib/Drupal/Core/Form/FormHelper.php Helps recursively rewrite #states selectors.
FormHelper::rewriteStatesSelector function core/lib/Drupal/Core/Form/FormHelper.php Rewrites #states selectors in a render element.
FormHelperTest::testProcessStates function core/tests/Drupal/Tests/Core/Form/FormHelperTest.php @covers ::processStates[[api-linebreak]]
@dataProvider providerElements
FormHelperTest::testRewriteStatesSelector function core/tests/Drupal/Tests/Core/Form/FormHelperTest.php Tests rewriting the #states selectors.
FormState class core/lib/Drupal/Core/Form/FormState.php Stores information about the state of a form.

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