function SynchronizeCsrfTokenSeedTrait::drupalLogout

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php \Drupal\Tests\ckeditor5\Traits\SynchronizeCsrfTokenSeedTrait::drupalLogout()
  2. 11.x core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php \Drupal\Tests\ckeditor5\Traits\SynchronizeCsrfTokenSeedTrait::drupalLogout()
3 calls to SynchronizeCsrfTokenSeedTrait::drupalLogout()
ImageUploadAccessTest::testCkeditor5ImageUploadRoute in core/modules/ckeditor5/tests/src/Functional/ImageUploadAccessTest.php
Test access to the CKEditor 5 image upload controller.
MediaEntityMetadataApiTest::testApi in core/modules/ckeditor5/tests/src/Functional/MediaEntityMetadataApiTest.php
Tests the media entity metadata API.
SynchronizeCsrfTokenSeedTrait::rebuildContainer in core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php

File

core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php, line 53

Class

SynchronizeCsrfTokenSeedTrait
Synchronizes the child site's CSRF token seed back to the test runner.

Namespace

Drupal\Tests\ckeditor5\Traits

Code

protected function drupalLogout() {
    parent::drupalLogout();
    $this->container
        ->get('session_manager.metadata_bag')
        ->stampNew();
}

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