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
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.
CronTest::$state property core/tests/Drupal/Tests/Core/CronTest.php The current state of the test in memory.
CronTest::resetTestingState function core/tests/Drupal/Tests/Core/CronTest.php Resets the testing state.
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::testPrepareStatementFailOnExecution function core/modules/sqlite/tests/src/Kernel/sqlite/DatabaseExceptionWrapperTest.php Tests Connection::prepareStatement exception on execution.
DatabaseExceptionWrapperTest::testPrepareStatementFailOnExecution function core/modules/mysql/tests/src/Kernel/mysql/DatabaseExceptionWrapperTest.php Tests Connection::prepareStatement exception on execution.
DatabaseExceptionWrapperTest::testPrepareStatementFailOnExecution function core/modules/pgsql/tests/src/Kernel/pgsql/DatabaseExceptionWrapperTest.php Tests Connection::prepareStatement exception on execution.
DatabaseExceptionWrapperTest::testPrepareStatementFailOnPreparation function core/modules/mysql/tests/src/Kernel/mysql/DatabaseExceptionWrapperTest.php Tests Connection::prepareStatement exceptions on preparation.
DatabaseExceptionWrapperTest::testPrepareStatementFailOnPreparationWithThrowExceptionOption function core/tests/Drupal/KernelTests/Core/Database/DatabaseExceptionWrapperTest.php Tests Connection::prepareStatement with throw_exception option set.
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.
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
DefaultModerationStateTest::setUp function core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php
DefaultModerationStateTest::testDeleteDefaultStateAccess function core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php Tests access to deleting the default state.
DefaultModerationStateTest::testPublishedDefaultState function core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php Tests a workflow with a default moderation state set.
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.
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.
DrupalSqlBaseTest::$state property core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php Mock StateInterface.
DrupalTest::testState function core/tests/Drupal/Tests/Core/DrupalTest.php Tests the state() method.
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.

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