protected function LayoutBuilderQuickEditTest::disableLayoutBuilder in Drupal 9
Disables Layout Builder.
Parameters
string $path: The path to the manage display page.
1 call to LayoutBuilderQuickEditTest::disableLayoutBuilder()
- LayoutBuilderQuickEditTest::testEnableDisableLayoutBuilder in core/modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php 
- Tests Quick Edit boots correctly with Layout Builder defaults & overrides.
File
- core/modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php, line 288 
Class
- LayoutBuilderQuickEditTest
- Tests that Layout Builder functions with Quick Edit.
Namespace
Drupal\Tests\quickedit\FunctionalJavascriptCode
protected function disableLayoutBuilder($path) {
  $page = $this
    ->getSession()
    ->getPage();
  // Save the current user to re-login after Layout Builder changes.
  $user = $this->loggedInUser;
  $this
    ->loginLayoutAdmin();
  $this
    ->drupalGet($path);
  $page
    ->uncheckField('layout[allow_custom]');
  $page
    ->uncheckField('layout[enabled]');
  $page
    ->pressButton('Save');
  $page
    ->pressButton('Confirm');
  $this
    ->drupalLogin($user);
}