public function Decorator::__call in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__call()
- 8.2 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__call()
- 4.x webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__call()
Parameters
$method:
$args:
Return value
mixed
Throws
\Exception
File
- webprofiler/
src/ Decorator.php, line 73
Class
- Decorator
- Generic class Decorator.
Namespace
Drupal\webprofilerCode
public function __call($method, $args) {
if ($object = $this
->isCallable($method)) {
return call_user_func_array([
$object,
$method,
], $args);
}
throw new \Exception('Undefined method - ' . get_class($this
->getOriginalObject()) . '::' . $method);
}