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
DefaultModerationStateTest::setUp function core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php
DefaultModerationStateTest::testDeleteDefaultStateAccess function core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php Test access to deleting the default state.
DefaultModerationStateTest::testPublishedDefaultState function core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php Test a workflow with a default moderation state set.
DefaultModerationStateUpdateTest class core/modules/content_moderation/tests/src/Functional/Update/DefaultModerationStateUpdateTest.php Tests the upgrade path for updating the 'default_moderation_state' setting.
DefaultModerationStateUpdateTest.php file core/modules/content_moderation/tests/src/Functional/Update/DefaultModerationStateUpdateTest.php
DefaultModerationStateUpdateTest::setDatabaseDumpFiles function core/modules/content_moderation/tests/src/Functional/Update/DefaultModerationStateUpdateTest.php
DefaultModerationStateUpdateTest::testUpdateDefaultModerationState function core/modules/content_moderation/tests/src/Functional/Update/DefaultModerationStateUpdateTest.php Tests updating the default moderation state setting.
DefaultRevisionStateTest class core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php Tests the correct default revision is set.
DefaultRevisionStateTest.php file core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php
DefaultRevisionStateTest::$entityTypeManager property core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php
DefaultRevisionStateTest::$modules property core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php
DefaultRevisionStateTest::assertModerationState function core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php Verifies the expected moderation state revision exists.
DefaultRevisionStateTest::setUp function core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php
DefaultRevisionStateTest::testMultilingual function core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php Tests a translatable Node.
DeletedFieldsRepository::$state property core/lib/Drupal/Core/Field/DeletedFieldsRepository.php The state key/value store.
DeprecatedClassesTest::$state property core/modules/path_alias/tests/src/Unit/DeprecatedClassesTest.php
DeprecatedModerationStateViewsRelationshipTest class core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php Test the deprecated views relationships.
DeprecatedModerationStateViewsRelationshipTest.php file core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php
DeprecatedModerationStateViewsRelationshipTest::$modules property core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php Modules to enable.
DeprecatedModerationStateViewsRelationshipTest::setUp function core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php
DeprecatedModerationStateViewsRelationshipTest::testCodeDeprecationModerationStateRelationships function core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php Test the deprecations are triggered when the deprecated code is executed.
DeprecatedModerationStateViewsRelationshipTest::testReportDeprecatedModerationStateRelationships function core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php Test how the deprecated relationships appear in the UI.
DeprecatedServicesTest::testAliasManagerSharedState function core/modules/path_alias/tests/src/Kernel/DeprecatedServicesTest.php Test that the new alias manager and the legacy ones share the same state.
Display::getFormState function core/modules/views_ui/src/Form/Ajax/Display.php @todo Remove this and switch all usage of $form_state->get('section') to
$form_state->get('type').
DisplayExtenderTest::$testState property core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php Stores some state booleans to be sure a certain method got called.
Drupal::state function core/lib/Drupal.php Returns the state storage service.
DrupalGetProfileLegacyTest::providerDrupalGetProfileInstallState function core/tests/Drupal/Tests/Core/Bootstrap/DrupalGetProfileLegacyTest.php Data provider for testDrupalGetProfileInstallState().
DrupalGetProfileLegacyTest::testDrupalGetProfileLegacyInstallState function core/tests/Drupal/Tests/Core/Bootstrap/DrupalGetProfileLegacyTest.php Tests drupal_get_profile() deprecation.
DrupalTest::testState function core/tests/Drupal/Tests/Core/DrupalTest.php Tests the state() method.
drupal_process_states function core/includes/common.inc Adds JavaScript to change the state of an element based on another element.
EditorBaseTest::testBcWithSubformState function core/modules/editor/tests/src/Unit/EditorBaseTest.php @covers ::buildConfigurationForm[[api-linebreak]]
@covers ::validateConfigurationForm[[api-linebreak]]
@covers ::submitConfigurationForm[[api-linebreak]]
EmptyStatementTest class core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php Tests the empty pseudo-statement class.
EmptyStatementTest.php file core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php
EmptyStatementTest::testEmpty function core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php Tests that the empty result set behaves as empty.
EmptyStatementTest::testEmptyFetchAll function core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php Tests that the empty result set mass-fetches in an expected way.
EmptyStatementTest::testEmptyIteration function core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php Tests that the empty result set iterates safely.
EndOfTransactionQueriesTest::getStatementsForTable function core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php Filters statements by table name.
EndOfTransactionQueriesTest::statementToTableName function core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php Returns the table name for a statement.
EntityComment::$state property core/modules/comment/src/Plugin/migrate/destination/EntityComment.php The state storage object.
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
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 Test validation with an invalid state.
EntityStateChangeValidationTest::testInvalidStateMultilingual function core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php Test state transition validation with multiple languages.

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