Search for state

  1. Search 7.x for state
  2. Search 8.9.x for state
  3. Search 10.3.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
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.
FormState.php file core/lib/Drupal/Core/Form/FormState.php
FormState::$always_process property core/lib/Drupal/Core/Form/FormState.php If TRUE and the method is GET, a form_id is not necessary.
FormState::$anyErrors property core/lib/Drupal/Core/Form/FormState.php Tracks if any errors have been set on any form.
FormState::$build_info property core/lib/Drupal/Core/Form/FormState.php An associative array of information stored by Form API.
FormState::$buttons property core/lib/Drupal/Core/Form/FormState.php A list containing copies of all submit and button elements in the form.
FormState::$cache property core/lib/Drupal/Core/Form/FormState.php Determines if the unprocessed form structure is cached.
FormState::$cleanValueKeys property core/lib/Drupal/Core/Form/FormState.php An associative array of form value keys to be removed by cleanValues().
FormState::$complete_form property core/lib/Drupal/Core/Form/FormState.php The complete form structure.
FormState::$errors property core/lib/Drupal/Core/Form/FormState.php Contains errors for this form.
FormState::$executed property core/lib/Drupal/Core/Form/FormState.php If TRUE, the form was submitted and has been processed and executed.
FormState::$groups property core/lib/Drupal/Core/Form/FormState.php Contains references to details elements to render them within vertical tabs.
FormState::$has_file_element property core/lib/Drupal/Core/Form/FormState.php Indicates a file element is present.
FormState::$input property core/lib/Drupal/Core/Form/FormState.php The array of values as they were submitted by the user.
FormState::$invalidToken property core/lib/Drupal/Core/Form/FormState.php Determines if only safe element value callbacks are called.

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