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