function ShutdownFunctionTest::shutdownOne

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php \Drupal\KernelTests\Core\Bootstrap\ShutdownFunctionTest::shutdownOne()
  2. 10 core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php \Drupal\KernelTests\Core\Bootstrap\ShutdownFunctionTest::shutdownOne()

Tests shutdown functions by registering another shutdown function.

File

core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php, line 54

Class

ShutdownFunctionTest
Tests.

Namespace

Drupal\KernelTests\Core\Bootstrap

Code

public function shutdownOne() {
    drupal_register_shutdown_function([
        $this,
        'shutdownTwo',
    ]);
    $this->shutDownOneCalled = TRUE;
}

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