5 * Contains functions for testing calling deprecated functions in tests.
9 * A deprecated function.
12 * A known return value of 'known_return_value'.
14 * @deprecated in Drupal 8.4.x. Might be removed before Drupal 9.0.0. This is
15 * the deprecation message for deprecated_test_function().
17 function deprecation_test_function() {
18 @trigger_error('This is the deprecation message for deprecation_test_function().', E_USER_DEPRECATED);
19 return 'known_return_value';
23 * Implements hook_deprecated_hook().
25 function deprecation_test_deprecated_hook($arg) {
30 * Implements hook_deprecated_alter_alter().
32 function deprecation_test_deprecated_alter_alter(&$data, $context1, $context2) {
33 $data = [$context1, $context2];