Search for state

  1. Search 7.x for state
  2. Search 9.5.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::testInvalidStateWithoutExisting function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Test validation with content that has no initial state or an invalid state.
EntityStateChangeValidationTest::testInvalidTransition function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Test 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 Test 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.
EntityUnitTestBase::$state property core/modules/system/src/Tests/Entity/EntityUnitTestBase.php The state service.
EntityUpdateAddRevisionDefaultTest::$state property core/modules/system/tests/src/Functional/Update/EntityUpdateAddRevisionDefaultTest.php The state service.
EntityUpdateAddRevisionTranslationAffectedTest::$state property core/modules/system/tests/src/Functional/Update/EntityUpdateAddRevisionTranslationAffectedTest.php The state service.
EntityUpdateToPublishableTest::$state property core/modules/system/tests/src/Functional/Update/EntityUpdateToPublishableTest.php The state service.
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.
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.
FieldUpdateTest::$state property core/modules/field/tests/src/Functional/Update/FieldUpdateTest.php The state service.
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 that is necessary to
build and rebuild the form from cache when the original context may no
longer be available:
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 If set to TRUE the original, unprocessed form structure will be cached,
which allows the entire form to be rebuilt from cache. A typical form
workflow involves two page requests; first, a form is built and rendered
for the user to fill in. Then, the…
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 If TRUE, there is a file element and Form API will set the appropriate
'enctype' HTML attribute on the form.
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 If set to TRUE the form will skip calling form element value callbacks,
except for a select list of callbacks provided by Drupal core that are
known to be safe.

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