You are here

126 string references to state in Drupal 10

AliasTest::testWhitelist in core/modules/path_alias/tests/src/Kernel/AliasTest.php
Tests the alias whitelist.
AliasTest::testWhitelistCacheDeletionMidRequest in core/modules/path_alias/tests/src/Kernel/AliasTest.php
Tests situation where the whitelist cache is deleted mid-request.
AssertMailTrait::assertMail in core/lib/Drupal/Core/Test/AssertMailTrait.php
Asserts that the most recently sent email message has the given value.
AssertMailTrait::getMails in core/lib/Drupal/Core/Test/AssertMailTrait.php
Gets an array containing all emails sent during this test case.
AttachedAssetsTest::testAddFiles in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Tests adding a CSS and a JavaScript file.
AttachedAssetsTest::testAddJsFileWithQueryString in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Tests JavaScript files that have query strings attached get added right.
AttachedAssetsTest::testHeaderHTML in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Tests JS assets depending on the 'core/<head>' virtual library.
BlockUiTest::testCandidateBlockList in core/modules/block/tests/src/Functional/BlockUiTest.php
Tests the block categories on the listing page.
BundleClassTest::testAmbiguousBundleClassExceptionCreate in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception is thrown if two bundles share the same bundle class.
BundleClassTest::testAmbiguousBundleClassExceptionEntityTypeRepository in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception is thrown if two entity types share the same bundle class.
BundleClassTest::testBundleClassShouldExist in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception thrown if a bundle class doesn't exist.
BundleClassTest::testBundleClassShouldExtendEntityClass in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Checks exception thrown if a bundle class doesn't extend the entity class.
BundleClassTest::testEntityClassNotTakenFromActiveDefinitions in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Tests that a module can override an entity-type class.
BundleClassTest::testEntityNoBundleSubclass in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
Tests making use of a custom bundle class for an entity without bundles.
CacheableMetadataCalculationTest::create in core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php
Creates an instance of the plugin.
CacheableMetadataCalculationTest::setUp in core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php
CKEditor::create in core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
CollectRoutesTest::setUp in core/modules/rest/tests/src/Unit/CollectRoutesTest.php
CommentLinksAlterTest::setUp in core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php
ComplexTestTypeStateForm::buildConfigurationForm in core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeStateForm.php
Form constructor.
ConfigEntityQueryTest::testLookupKeys in core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
Tests lookup keys are added to the key value store.
ConfigTranslationFormTest::testConfigTranslationFormAlter in core/modules/config_translation/tests/src/Kernel/ConfigTranslationFormTest.php
Tests altering of the configuration translation forms.
ConfigTranslationUiTest::testAlterInfo in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
Tests the config_translation_info_alter() hook.
config_test_entity_type_alter in core/modules/config/tests/config_test/config_test.module
Implements hook_entity_type_alter().
ContainerRebuildTestServiceProvider::alter in core/modules/system/tests/modules/container_rebuild_test/src/ContainerRebuildTestServiceProvider.php
Modifies existing service definitions.
ContentModerationStateForm::buildConfigurationForm in core/modules/content_moderation/src/Form/ContentModerationStateForm.php
Form constructor.
ContentTranslationEntityBundleInfoTest::testHookInvocationOrder in core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php
Tests that modules can know whether bundles are translatable.
ContentTranslationHandlerTest::setUp in core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php
ContentTranslationPermissionsTest::testPermissions in core/modules/content_translation/tests/src/Kernel/ContentTranslationPermissionsTest.php
Tests that enabling translation via the API triggers schema updates.
CredentialForm::create in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Instantiates a new instance of this class.
CronForm::create in core/modules/system/src/Form/CronForm.php
Instantiates a new instance of this class.
CronTest::setUp in core/tests/Drupal/Tests/Core/CronTest.php
d6_language_content_taxonomy_vocabulary_settings.yml in core/modules/language/migrations/d6_language_content_taxonomy_vocabulary_settings.yml
core/modules/language/migrations/d6_language_content_taxonomy_vocabulary_settings.yml
DbUpdateController::create in core/modules/system/src/Controller/DbUpdateController.php
Instantiates a new instance of this class.
DrupalSqlBase::create in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Creates an instance of the plugin.
DrupalTest::testState in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the state() method.
EntityAccessControlHandlerTest::testHooks in core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
Tests hook invocations.
EntityComment::create in core/modules/comment/src/Plugin/migrate/destination/EntityComment.php
Creates an instance of the plugin.
EntityConverterLatestRevisionTest::testWithTranslatedPendingRevision in core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php
Tests with a translated pending revision.
EntityFormTest::testValidationHandlers in core/modules/system/tests/src/Functional/Entity/EntityFormTest.php
Checks that validation handlers works as expected.
EntityKernelTestBase::refreshServices in core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php
Refresh services.
EntityKernelTestBase::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php
EntityRepositoryTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php
EntityTestTest::createEntity in core/modules/jsonapi/tests/src/Functional/EntityTestTest.php
EntityTypeInfoTest::testEntityBaseFieldProvider in core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php
Tests entity base field provider.
ExportStorageManagerTest::testGetStorage in core/tests/Drupal/KernelTests/Core/Config/ExportStorageManagerTest.php
Tests getting the export storage.
Feed::create in core/modules/views/src/Plugin/views/display/Feed.php
FieldItemNormalizerTest::setUp in core/modules/jsonapi/tests/src/Kernel/Normalizer/FieldItemNormalizerTest.php
FieldItemTest::setUp in core/tests/Drupal/KernelTests/Core/Field/FieldItemTest.php
FileTestSaveUploadFromForm::create in core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php
Instantiates a new instance of this class.
HelpSearch::create in core/modules/help_topics/src/Plugin/Search/HelpSearch.php
ImageEffectsTest::testImageEffectsCaching in core/modules/image/tests/src/Kernel/ImageEffectsTest.php
Tests image effect caching.
IncrementalForm::create in core/modules/migrate_drupal_ui/src/Form/IncrementalForm.php
Instantiates a new instance of this class.
InstallHelper::create in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
InstallUninstallTest::testInstallUninstall in core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php
Tests that a fixed set of modules can be installed and uninstalled.
JsonApiFunctionalTest::testRead in core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php
Tests the GET method.
LanguageContentSettingsTaxonomyVocabulary::fields in core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php
Returns available fields on the source.
LanguageContentSettingsTaxonomyVocabulary::prepareRow in core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php
Adds additional data to the row.
LanguageContentTaxonomyVocabularySettingsTest::providerSource in core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php
The data provider.
LanguageNegotiationContentEntityTest::testDefaultConfiguration in core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
Tests default with content language remaining same as interface language.
LanguageNegotiationContentEntityTest::testEnabledLanguageContentNegotiator in core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
Tests enabling the language negotiator language_content_entity.
LanguageNegotiationInfoTest::stateSet in core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
Sets state flags for language_test module.
LanguageNegotiationInfoTest::testInfoAlterations in core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
Tests alterations to language types/negotiation info.
LanguageTestBase::setUp in core/modules/language/tests/src/Kernel/LanguageTestBase.php
LayoutBuilderSectionStorageTest::testRenderByContextAwarePluginDelegate in core/modules/layout_builder/tests/src/Functional/LayoutBuilderSectionStorageTest.php
Tests that section loading is delegated to plugins during rendering.
LayoutSectionTest::testLayoutSectionFormatterAccess in core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php
Tests the access checking of the section formatter.
MediaSourceTest::testSave in core/modules/media/tests/src/Kernel/MediaSourceTest.php
Tests that metadata is correctly mapped irrespective of how media is saved.
MediaTest::testErrorMessages in core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php
Tests that failed media embed preview requests inform the end user.
MediaTest::testErrorMessages in core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php
Tests that failed media embed preview requests inform the end user.
MenuRouterTest::doTestThemeCallbackMaintenanceMode in core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
Tests the theme negotiation when the site is in maintenance mode.
MenuRouterTest::testMaintenanceModeLoginPaths in core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
Make sure the maintenance mode can be bypassed using an EventSubscriber.
MigrateUpgradeFormBase::create in core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php
Instantiates a new instance of this class.
MigrateUpgradeFormStepsTest::testMigrateUpgradeReviewPage in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php
Tests the flow of the Migrate Drupal UI form.
MigrationConfigurationTrait::getState in core/modules/migrate_drupal/src/MigrationConfigurationTrait.php
Gets the state service.
ModerationStateWidget::formElement in core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php
Returns the form for a single field widget.
ModerationStateWidget::validateElement in core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php
Form validation handler for widget elements.
Node::create in core/modules/node/src/Plugin/migrate/source/d6/Node.php
Creates an instance of the plugin.
Node::create in core/modules/node/src/Plugin/migrate/source/d7/Node.php
Creates an instance of the plugin.
NodeServiceProvider::register in core/modules/node/src/NodeServiceProvider.php
OverriddenConfigurationTest::testOverriddenBlock in core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php
Tests that blocks with configuration overrides are disabled.
OverriddenConfigurationTest::testOverriddenConfigurationRemoved in core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php
Tests blocks with overridden related configuration removed when overridden.
Page::create in core/modules/views/src/Plugin/views/display/Page.php
PathPluginBase::create in core/modules/views/src/Plugin/views/display/PathPluginBase.php
PluginAlterTest::testPluginAlter in core/tests/Drupal/KernelTests/Core/Render/Element/PluginAlterTest.php
Tests hook_element_plugin_alter().
RecursiveContextualValidatorTest::testRecursiveViolationPropagation in core/tests/Drupal/KernelTests/Core/TypedData/RecursiveContextualValidatorTest.php
Tests recursive propagation of violations.
RefreshVariablesTrait::refreshVariables in core/lib/Drupal/Core/Test/RefreshVariablesTrait.php
Refreshes in-memory configuration and state information.
RendererBubblingTest::testBubblingWithPrerender in core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
Tests bubbling of bubbleable metadata added by #pre_render callbacks.
RestExport::create in core/modules/rest/src/Plugin/views/display/RestExport.php
RestExportTest::testBuildResponse in core/modules/rest/tests/src/Kernel/Views/RestExportTest.php
@covers ::buildResponse
ReviewForm::create in core/modules/migrate_drupal_ui/src/Form/ReviewForm.php
Instantiates a new instance of this class.
SecurityAdvisoryTest::assertServiceAdvisoryLoggedErrors in core/modules/system/tests/src/Functional/SecurityAdvisories/SecurityAdvisoryTest.php
Asserts the expected error messages were logged on the system logger.
SiteMaintenanceModeForm::create in core/modules/system/src/Form/SiteMaintenanceModeForm.php
Instantiates a new instance of this class.
SqlBase::create in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Creates an instance of the plugin.
State::__construct in core/lib/Drupal/Core/State/State.php
Constructs a State object.
StateInterface.php in core/modules/workflows/src/StateInterface.php
StyleSerializerTest::testSiteMaintenance in core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
Verifies site maintenance mode functionality.
TableDragTest::setUp in core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php
TableDragTestForm::create in core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php
Instantiates a new instance of this class.
TaxonomyQueryAlterTest::assertQueryTagTestResult in core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php
Verifies invocation of the hooks in the test module.
TaxonomyQueryAlterTest::setupQueryTagTestHooks in core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php
Sets up the hooks in the test module.
template_preprocess_system_themes_page in core/modules/system/system.admin.inc
Prepares variables for appearance page templates.
TermParentsTest::setUp in core/modules/taxonomy/tests/src/Functional/TermParentsTest.php
TestAccessBlock::create in core/modules/block/tests/modules/block_test/src/Plugin/Block/TestAccessBlock.php
Creates an instance of the plugin.
TestToolkit::create in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Creates an instance of the plugin.
ThemeInfoTest::setUp in core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php
ThemeInstallerTest::testThemeInfoAlter in core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php
Tests that theme info can be altered by a module.
TranslateFormBase::create in core/modules/locale/src/Form/TranslateFormBase.php
Instantiates a new instance of this class.
TranslationStatusForm::create in core/modules/locale/src/Form/TranslationStatusForm.php
Instantiates a new instance of this class.
UninstallKernelTest::testUninstallPluginCacheClear in core/modules/system/tests/src/Kernel/Installer/UninstallKernelTest.php
Tests uninstalling a module with a plugin cache clearer service.
UpdateManagerUpdate::create in core/modules/update/src/Form/UpdateManagerUpdate.php
Instantiates a new instance of this class.
UpdateReady::create in core/modules/update/src/Form/UpdateReady.php
Instantiates a new instance of this class.
UpdateScriptTest::testMaintenanceModeUpdateFunctionality in core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
Tests update.php while in maintenance mode.
UpdateScriptTest::testSuccessfulUpdateFunctionality in core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
Tests update.php after performing a successful update.
ViewRenderTest::testRender in core/modules/views/tests/src/Kernel/ViewRenderTest.php
Tests render functionality.
ViewsEntitySchemaSubscriberIntegrationTest::setUp in core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
ViewsHooksTest::testHooks in core/modules/views/tests/src/Kernel/ViewsHooksTest.php
Tests the hooks.
ViewsKernelTestBase::setUpFixtures in core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php
Sets up the configuration and schema of views and views_test_data modules.
ViewsLocalTask::create in core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
views_test_data_views_data in core/modules/views/tests/modules/views_test_data/views_test_data.views.inc
Implements hook_views_data().
WorkflowCustomStateTransitionAccessTest::testCustomWorkflowAccessOperations in core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php
Tests the custom state/transition operation access rules.
WorkflowEditForm::form in core/modules/workflows/src/Form/WorkflowEditForm.php
Gets the actual form array to be built.
WorkflowStateAddForm::save in core/modules/workflows/src/Form/WorkflowStateAddForm.php
Form submission handler for the 'save' action.
WorkflowStateEditForm::form in core/modules/workflows/src/Form/WorkflowStateEditForm.php
Gets the actual form array to be built.
WorkflowStateEditForm::save in core/modules/workflows/src/Form/WorkflowStateEditForm.php
Form submission handler for the 'save' action.
WorkflowStateEditForm::validateForm in core/modules/workflows/src/Form/WorkflowStateEditForm.php
Form validation handler.
WorkflowTypeStateFormBase::submitConfigurationForm in core/modules/workflows/src/Plugin/WorkflowTypeStateFormBase.php
Form submission handler.