You are here

function hold_test_request in Drupal 8

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

Request hold.

Parameters

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

1 call to hold_test_request()
hold_test_install in core/modules/system/tests/modules/hold_test/hold_test.install
Implements hook_install().

File

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

Code

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