public function Debugger::callerAdd in Acquia Purge 8
Register the current caller to the callgraph.
Parameters
string|object $caller: Fully namespaced class string or instantiated object.
Overrides DebuggerInterface::callerAdd
1 call to Debugger::callerAdd()
- Debugger::__construct in src/
Plugin/ Purge/ Purger/ Debugger.php - Construct a debugger.
File
- src/
Plugin/ Purge/ Purger/ Debugger.php, line 57
Class
- Debugger
- Provides a centralized debugger for Acquia purger plugins.
Namespace
Drupal\acquia_purge\Plugin\Purge\PurgerCode
public function callerAdd($caller) {
if (!$this->enabled) {
return;
}
// Normalize the caller name and add it to the call graph.
$caller = $this
->extractClassName($caller);
$this
->write('<' . $caller . '>');
$this->callGraph[] = $caller;
}