public function Js::getLastCaller in JS Callback Handler 8.3
Gets the last caller from a backtrace.
Parameters
array $backtrace: A standard PHP backtrace. Passed by reference.
Return value
array An associative array with keys 'file', 'line' and 'function'.
2 calls to Js::getLastCaller()
- Js::errorHandler in src/
Js.php - Provides custom PHP error handling.
- Js::exceptionHandler in src/
Js.php - Provides custom PHP exception handling.
File
- src/
Js.php, line 434
Class
- Js
- JS Callback Handler service.
Namespace
Drupal\jsCode
public function getLastCaller(array &$backtrace) {
return Error::getLastCaller($backtrace);
}