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
StateTransitionValidation::__construct function core/modules/content_moderation/src/StateTransitionValidation.php Constructs a new StateTransitionValidation.
StateTransitionValidationInterface interface core/modules/content_moderation/src/StateTransitionValidationInterface.php Validates whether a certain state transition is allowed.
StateTransitionValidationInterface.php file core/modules/content_moderation/src/StateTransitionValidationInterface.php
StateTransitionValidationInterface::getValidTransitions function core/modules/content_moderation/src/StateTransitionValidationInterface.php Gets a list of transitions that are legal for this user on this entity.
StateTransitionValidationInterface::isTransitionValid function core/modules/content_moderation/src/StateTransitionValidationInterface.php Checks if a transition between two states if valid for the given user.
StateTransitionValidationTest class core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php @coversDefaultClass \Drupal\content_moderation\StateTransitionValidation[[api-linebreak]]
@group content_moderation
StateTransitionValidationTest.php file core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php
StateTransitionValidationTest::$workflow property core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php A test workflow.
StateTransitionValidationTest::setUp function core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php
StateTransitionValidationTest::testDeprecatedEntityParameter function core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php @expectedDeprecation Omitting the $entity parameter from Drupal\content_moderation\StateTransitionValidation::isTransitionValid is deprecated and will be required in Drupal 9.0.0.
@group legacy
StateTransitionValidationTest::testUserSensitiveValidTransitions function core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php Verifies user-aware transition validation.
StateTransitionValidationTest::userTransitionsProvider function core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php Data provider for the user transition test.
StateValuesCleanAdvancedTest class core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php Tests proper removal of submitted form values using
\Drupal\Core\Form\FormState::cleanValues() when having forms with elements
containing buttons like "managed_file".
StateValuesCleanAdvancedTest.php file core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php
StateValuesCleanAdvancedTest::$defaultTheme property core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php
StateValuesCleanAdvancedTest::$image property core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php An image file path for uploading.
StateValuesCleanAdvancedTest::$modules property core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php Modules to enable.
StateValuesCleanAdvancedTest::testFormStateValuesCleanAdvanced function core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php Tests \Drupal\Core\Form\FormState::cleanValues().
StateValuesCleanTest class core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php Tests proper removal of submitted form values using
\Drupal\Core\Form\FormState::cleanValues().
StateValuesCleanTest.php file core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
StateValuesCleanTest::$defaultTheme property core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
StateValuesCleanTest::$modules property core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php Modules to enable.
StateValuesCleanTest::testFormStateValuesClean function core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php Tests \Drupal\Core\Form\FormState::cleanValues().
SubformState class core/lib/Drupal/Core/Form/SubformState.php Stores information about the state of a subform.
SubformState.php file core/lib/Drupal/Core/Form/SubformState.php
SubformState::$parentForm property core/lib/Drupal/Core/Form/SubformState.php The parent form.
SubformState::$subform property core/lib/Drupal/Core/Form/SubformState.php The subform.
SubformState::createForSubform function core/lib/Drupal/Core/Form/SubformState.php Creates a new instance for a subform.
SubformState::getCompleteFormState function core/lib/Drupal/Core/Form/SubformState.php
SubformState::getLimitValidationErrors function core/lib/Drupal/Core/Form/SubformState.php
SubformState::getParents function core/lib/Drupal/Core/Form/SubformState.php Gets the subform's parents relative to its parent form.
SubformState::getValues function core/lib/Drupal/Core/Form/SubformState.php
SubformState::setErrorByName function core/lib/Drupal/Core/Form/SubformState.php
SubformState::setLimitValidationErrors function core/lib/Drupal/Core/Form/SubformState.php
SubformState::__construct function core/lib/Drupal/Core/Form/SubformState.php Constructs a new instance.
SubformStateInterface interface core/lib/Drupal/Core/Form/SubformStateInterface.php Stores information about the state of a subform.
SubformStateInterface.php file core/lib/Drupal/Core/Form/SubformStateInterface.php
SubformStateInterface::getCompleteFormState function core/lib/Drupal/Core/Form/SubformStateInterface.php Gets the complete form state.
SubformStateTest class core/tests/Drupal/Tests/Core/Form/SubformStateTest.php @coversDefaultClass \Drupal\Core\Form\SubformState[[api-linebreak]]
SubformStateTest.php file core/tests/Drupal/Tests/Core/Form/SubformStateTest.php
SubformStateTest::$formStateValues property core/tests/Drupal/Tests/Core/Form/SubformStateTest.php The form state's values test fixture.
SubformStateTest::$parentForm property core/tests/Drupal/Tests/Core/Form/SubformStateTest.php The parent form.
SubformStateTest::providerGetValues function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Provides data to self::testGetValues().
SubformStateTest::providerGetValuesBroken function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Provides data to self::testGetValuesBroken().
SubformStateTest::providerTestGetValue function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Provides data to self::testGetValue().
SubformStateTest::providerTestGetValueBroken function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Provides data to self::testGetValueBroken().
SubformStateTest::providerTestSetValues function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Provides data to self::testSetValues().
SubformStateTest::providerTestSetValuesBroken function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Provides data to self::testSetValuesBroken().
SubformStateTest::testGetCompleteFormStateWithParentCompleteForm function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php @covers ::getCompleteFormState[[api-linebreak]]
SubformStateTest::testGetCompleteFormStateWithParentSubform function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php @covers ::getCompleteFormState[[api-linebreak]]

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