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
ContentModerationStateTest::basicModerationTestCases function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Test cases for basic moderation test.
ContentModerationStateTest::createEntity function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Creates an entity.
ContentModerationStateTest::moderationWithSpecialLanguagesTestCases function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Test cases for ::testModerationWithSpecialLanguages().
ContentModerationStateTest::reloadEntity function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Reloads the entity after clearing the static cache.
ContentModerationStateTest::setUp function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
ContentModerationStateTest::testBasicModeration function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests basic monolingual content moderation through the API.
ContentModerationStateTest::testChangingContentLangcode function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Test changing the language of content without adding a translation.
ContentModerationStateTest::testContentModerationStateDataRemoval function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests removal of content moderation state entity.
ContentModerationStateTest::testContentModerationStatePendingRevisionDataRemoval function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests removal of content moderation state pending entity revisions.
ContentModerationStateTest::testContentModerationStateRevisionDataRemoval function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests removal of content moderation state entity revisions.
ContentModerationStateTest::testContentModerationStateTranslationDataRemoval function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests removal of content moderation state translations.
ContentModerationStateTest::testExistingContentModerationStateDataRemoval function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests removal of content moderation state entities for preexisting content.
ContentModerationStateTest::testGetCurrentUserId function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests the legacy method used as the default entity owner.
ContentModerationStateTest::testModerationWithFieldConfigOverride function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests moderation when the moderation_state field has a config override.
ContentModerationStateTest::testModerationWithSpecialLanguages function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests that entities with special languages can be moderated.
ContentModerationStateTest::testMultilingualModeration function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests basic multilingual content moderation through the API.
ContentModerationStateTest::testNonLangcodeEntityTypeModeration function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests that a non-translatable entity type without a langcode can be
moderated.
ContentModerationStateTest::testNonTranslatableEntityTypeModeration function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests that a non-translatable entity type with a langcode can be moderated.
ContentModerationStateTest::testRevisionDefaultState function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Test the revision default state of the moderation state entity revisions.
ContentModerationStateTest::testWorkflowDependencies function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests the dependencies of the workflow when using content moderation.
ContentModerationStateTest::testWorkflowNonConfigBundleDependencies function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Test the content moderation workflow dependencies for non-config bundles.
ContentModerationSyncingTest::testMultipleRevisionStateChangedDuringSync function core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php Test state changes with multiple revisions during a sync.
ContentModerationSyncingTest::testSingleRevisionStateChangedDuringSync function core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php Test changing the moderation state during a sync.
ContentModerationSyncingTest::testStateChangedPreviousRevisionDuringSync function core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php Test a moderation state changed on a previous revision during a sync.
ContentModerationWorkflowConfigTest::testDeletingStateViaConfiguration function core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php Test deleting a state via config import.
ContentTranslationHandlerTest::$state property core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php The state service.
ContentTranslationUpdateTest::$state property core/modules/content_translation/tests/src/Functional/Update/ContentTranslationUpdateTest.php The state service.
content_moderation.state_transition_validation service core/modules/content_moderation/content_moderation.services.yml \Drupal\content_moderation\StateTransitionValidation
content_moderation_post_update_set_default_moderation_state function core/modules/content_moderation/content_moderation.post_update.php Set the default moderation state for new content to 'draft'.
ControllerBase::$stateService property core/lib/Drupal/Core/Controller/ControllerBase.php The state service.
ControllerBase::state function core/lib/Drupal/Core/Controller/ControllerBase.php Returns the state storage service.
Cron::$state property core/lib/Drupal/Core/Cron.php The state service.
CronForm::$state property core/modules/system/src/Form/CronForm.php Stores the state storage service.
CssCollectionOptimizer::$state property core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php The state key/value store.
CssCollectionRenderer::$state property core/lib/Drupal/Core/Asset/CssCollectionRenderer.php The state key/value store.
CSS_STATE constant core/includes/common.inc The default weight for CSS rules that style states and are not included with components.
Database::RETURN_STATEMENT constant core/lib/Drupal/Core/Database/Database.php Flag to indicate a query call should return the prepared statement.
DatabaseExceptionWrapperTest::testPreparedStatement function core/tests/Drupal/KernelTests/Core/Database/DatabaseExceptionWrapperTest.php Tests the expected database exception thrown for prepared statements.
database_statement_monitoring_test.info.yml file core/modules/system/tests/modules/database_statement_monitoring_test/database_statement_monitoring_test.info.yml core/modules/system/tests/modules/database_statement_monitoring_test/database_statement_monitoring_test.info.yml
DbUpdateController::$state property core/modules/system/src/Controller/DbUpdateController.php The state service.
DefaultContentModerationStateRevisionUpdateTest class core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php Test updating the ContentModerationState entity default revisions.
DefaultContentModerationStateRevisionUpdateTest.php file core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php
DefaultContentModerationStateRevisionUpdateTest::assertCompositeEntityMatchesDefaultRevisionId function core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php Assert for the given entity, the default revision ID matches.
DefaultContentModerationStateRevisionUpdateTest::getEntityByLabel function core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php Load an entity by label.
DefaultContentModerationStateRevisionUpdateTest::setDatabaseDumpFiles function core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php
DefaultContentModerationStateRevisionUpdateTest::testNoEntitiesUnderModeration function core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php Test the post_update hook when no entity types are being moderated.
DefaultContentModerationStateRevisionUpdateTest::testUpdateDefaultRevision function core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php Test updating the default revision.
DefaultModerationStateTest class core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php Tests setting a custom default moderation state.
DefaultModerationStateTest.php file core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php
DefaultModerationStateTest::$defaultTheme property core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php

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