You are here

function hold_test_response in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/hold_test/hold_test.module \hold_test_response()

Response hold.

Parameters

bool $status: TRUE - enable hold, FALSE - disable hold.

3 calls to hold_test_response()
hold_test_install in core/modules/system/tests/modules/hold_test/hold_test.install
Implements hook_install().
QuickEditIntegrationTest::testArticleNode in core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditIntegrationTest.php
Tests if an article node can be in-place edited with Quick Edit.
ThrobberTest::testThemingThrobberElement in core/tests/Drupal/FunctionalJavascriptTests/Ajax/ThrobberTest.php
Tests theming throbber element.

File

core/modules/system/tests/modules/hold_test/hold_test.module, line 25
Contains functions for testing hold request/response.

Code

function hold_test_response($status) {
  $site_path = \Drupal::service('site.path');
  file_put_contents($site_path . '/hold_test_response.txt', $status);
}