function Decorator::getOriginalObject
Return the original (i.e. non decorated) object.
Return value
mixed The original object.
3 calls to Decorator::getOriginalObject()
- Decorator::isCallable in webprofiler/
src/ Decorator.php - Returns true if $method is a PHP callable.
- Decorator::__call in webprofiler/
src/ Decorator.php - Decorator::__get in webprofiler/
src/ Decorator.php
File
-
webprofiler/
src/ Decorator.php, line 31
Class
- Decorator
- Generic class Decorator.
Namespace
Drupal\webprofilerCode
public function getOriginalObject() {
$object = $this->object;
while ($object instanceof Decorator) {
$object = $object->getOriginalObject();
}
return $object;
}