Search for switchTo

  1. Search 7.x for switchTo
  2. Search 8.9.x for switchTo
  3. Search 10.3.x for switchTo
  4. Search 11.x for switchTo
  5. Other projects
Title Object type File name Summary
AccountSwitcher::switchTo function core/lib/Drupal/Core/Session/AccountSwitcher.php Safely switches to another account.
AccountSwitcherInterface::switchTo function core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Safely switches to another account.
CKEditor5AllowedTagsTest::testSwitchToVersion5 function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php Confirm that switching to CKEditor 5 from another editor updates tags.
MediaLibraryTestBase::switchToMediaLibraryGrid function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Switches to the grid display of the widget view.
MediaLibraryTestBase::switchToMediaLibraryTable function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Switches to the table display of the widget view.
MediaLibraryTestBase::switchToMediaType function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Clicks a media type tab and waits for it to appear.
SwitchToLiveForm class core/modules/workspaces/src/Form/SwitchToLiveForm.php Provides a form that switches to the live version of the site.
SwitchToLiveForm.php file core/modules/workspaces/src/Form/SwitchToLiveForm.php
SwitchToLiveForm::$workspaceManager property core/modules/workspaces/src/Form/SwitchToLiveForm.php The workspace manager.
SwitchToLiveForm::create function core/modules/workspaces/src/Form/SwitchToLiveForm.php Instantiates a new instance of this class.
SwitchToLiveForm::getCancelUrl function core/modules/workspaces/src/Form/SwitchToLiveForm.php Returns the route to go to if the user cancels the action.
SwitchToLiveForm::getDescription function core/modules/workspaces/src/Form/SwitchToLiveForm.php Returns additional text to display as a description.
SwitchToLiveForm::getFormId function core/modules/workspaces/src/Form/SwitchToLiveForm.php Returns a unique string identifying the form.
SwitchToLiveForm::getQuestion function core/modules/workspaces/src/Form/SwitchToLiveForm.php Returns the question to ask the user.
SwitchToLiveForm::submitForm function core/modules/workspaces/src/Form/SwitchToLiveForm.php Form submission handler.
SwitchToLiveForm::__construct function core/modules/workspaces/src/Form/SwitchToLiveForm.php Constructs a new SwitchToLiveForm.
WorkspaceManager::switchToLive function core/modules/workspaces/src/WorkspaceManager.php Unsets the active workspace via the workspace negotiators.
WorkspaceManagerInterface::switchToLive function core/modules/workspaces/src/WorkspaceManagerInterface.php Unsets the active workspace via the workspace negotiators.
WorkspaceSwitcherForm::submitSwitchToLive function core/modules/workspaces/src/Form/WorkspaceSwitcherForm.php Submit handler for switching to the live version of the site.
WorkspaceTestTrait::switchToWorkspace function core/modules/workspaces/tests/src/Kernel/WorkspaceTestTrait.php Sets a given workspace as active.
WorkspaceTestUtilities::switchToLive function core/modules/workspaces/tests/src/Functional/WorkspaceTestUtilities.php Switches to the live version of the site for subsequent requests.
WorkspaceTestUtilities::switchToWorkspace function core/modules/workspaces/tests/src/Functional/WorkspaceTestUtilities.php Sets a given workspace as "active" for subsequent requests.

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