Search for state

  1. Search 7.x for state
  2. Search 9.5.x for state
  3. Search 8.9.x for state
  4. Search 10.3.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
ModerationStateWidget::calculateDependencies function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Calculates dependencies for the configured plugin.
ModerationStateWidget::create function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Creates an instance of the plugin.
ModerationStateWidget::form function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Creates a form element for a field.
ModerationStateWidget::formElement function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Returns the form for a single field widget.
ModerationStateWidget::isApplicable function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Returns if the widget can be used for the provided field.
ModerationStateWidget::validateElement function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Form validation handler for widget elements.
ModerationStateWidget::__construct function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Constructs a new ModerationStateWidget object.
ModerationStateWidgetTest class core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php @coversDefaultClass \Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget[[api-linebreak]]
@group content_moderation
ModerationStateWidgetTest.php file core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php
ModerationStateWidgetTest::$modules property core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php Modules to install.
ModerationStateWidgetTest::setUp function core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php
ModerationStateWidgetTest::testIsApplicable function core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php @covers ::isApplicable[[api-linebreak]]
ModerationStateWidgetTest::testWidgetNonModeratedEntity function core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php Tests the widget does not impact a non-moderated entity.
NamedPlaceholderConverterTest::statementsWithParametersProvider function core/modules/mysqli/tests/src/Unit/NamedPlaceholderConverterTest.php Data for testParse.
NodeTranslationExceptionSubscriber::$state property core/modules/node/src/EventSubscriber/NodeTranslationExceptionSubscriber.php The state service.
NodeTranslationMigrateSubscriber::$state property core/modules/node/src/EventSubscriber/NodeTranslationMigrateSubscriber.php The state service.
NonAbstractFormStateDecoratorBase class core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php Provides a non-abstract version of the class under test.
NonAbstractFormStateDecoratorBase::__construct function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php Creates a new instance.
PathPluginBase::$state property core/modules/views/src/Plugin/views/display/PathPluginBase.php The state key value store.
PathPluginBaseTest::$state property core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php The mocked key value storage.
PathRootsSubscriber::$state property core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php The state key value store.
PathRootsSubscriberTest::$state property core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php The mocked state.
PdoResult::getClientStatement function core/lib/Drupal/Core/Database/Statement/PdoResult.php Returns the client-level database PDO statement object.
PdoTrait::getClientStatement function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Returns the client-level database statement object.
PerformanceTestRecorder::$state property core/lib/Drupal/Core/Test/PerformanceTestRecorder.php The state service for persistent storage if necessary.
PHP Runtime Assert Statements group core/core.api.php Use of the assert() statement in Drupal.
PluginManagerCacheClearer::$state property core/modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php
PluralFormula::$state property core/modules/locale/src/PluralFormula.php
PredefinedStatesWorkflowTestType class core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Test workflow type.
PredefinedStatesWorkflowTestType.php file core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php
PredefinedStatesWorkflowTestType::addState function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Adds a state to the workflow.
PredefinedStatesWorkflowTestType::defaultConfiguration function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Gets default configuration for this plugin.
PredefinedStatesWorkflowTestType::deleteState function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Deletes a state from the workflow.
PredefinedStatesWorkflowTestType::getState function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Gets a workflow state.
PredefinedStatesWorkflowTestType::getStates function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Gets state objects for the provided state IDs.
PredefinedStatesWorkflowTestType::hasState function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Determines if the workflow has a state with the provided ID.
PredefinedStatesWorkflowTestType::setStateLabel function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Sets a state's label.
PredefinedStatesWorkflowTestType::setStateWeight function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php Sets a state's weight value.
PrivateKey::$state property core/lib/Drupal/Core/PrivateKey.php The state service.
PrivateKeyTest::$state property core/tests/Drupal/Tests/Core/PrivateKeyTest.php The state mock class.
PrivateKeyTest::testGetNoState function core/tests/Drupal/Tests/Core/PrivateKeyTest.php Tests PrivateKey::get() with no private key from state.
ProxyBuilder::buildUseStatements function core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php Build the required use statements of the proxy class.
ProxyBuilder::buildUseStatements function core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php Build the required use statements of the proxy class.
RequiredStateMissingException class core/modules/workflows/src/Exception/RequiredStateMissingException.php Indicates that a workflow does not contain a required state.
RequiredStateMissingException.php file core/modules/workflows/src/Exception/RequiredStateMissingException.php
RequiredStatesTest class core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php Tests Workflow type's required states and configuration initialization.
RequiredStatesTest.php file core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php
RequiredStatesTest::$modules property core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php Modules to install.
RequiredStatesTest::testChangeRequiredStateAPI function core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php Ensures that initialized configuration can be changed.
RequiredStatesTest::testDeleteRequiredStateAPI function core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php @covers \Drupal\workflows\Entity\Workflow::preSave[[api-linebreak]]

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