function file_test_get_all_calls
Same name in other branches
- 7.x modules/simpletest/tests/file_test.module \file_test_get_all_calls()
- 9 core/modules/file/tests/file_test/file_test.module \file_test_get_all_calls()
- 8.9.x core/modules/file/tests/file_test/file_test.module \file_test_get_all_calls()
- 10 core/modules/file/tests/file_test/file_test.module \file_test_get_all_calls()
Get an array with the calls for all hooks.
Return value
array An array keyed by hook name ('load', 'validate', 'download', 'insert', 'update', 'copy', 'move', 'delete') with values being arrays of parameters passed to each call.
File
-
core/
modules/ file/ tests/ file_test/ file_test.module, line 76
Code
function file_test_get_all_calls() {
return \Drupal::state()->get('file_test.results', []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.