function SystemTestController::firstShutdown
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php \Drupal\system_test\Controller\SystemTestController::firstShutdown()
Dummy shutdown function which registers another shutdown function.
File
-
core/
modules/ system/ tests/ modules/ system_test/ src/ Controller/ SystemTestController.php, line 636
Class
- SystemTestController
- Controller routines for system_test routes.
Namespace
Drupal\system_test\ControllerCode
public static function firstShutdown($arg1, $arg2) : void {
// Set something to ensure that this function got called.
\Drupal::state()->set('_system_test_first_shutdown_function', [
$arg1,
$arg2,
]);
drupal_register_shutdown_function(self::class . '::secondShutdown', $arg1, $arg2);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.