You are here

public function Decorator::__get in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__get()
  2. 8.2 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__get()
  3. 4.x webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__get()

Parameters

$property:

Return value

null

File

webprofiler/src/Decorator.php, line 87

Class

Decorator
Generic class Decorator.

Namespace

Drupal\webprofiler

Code

public function __get($property) {
  $object = $this
    ->getOriginalObject();
  if (property_exists($object, $property)) {
    return $object->{$property};
  }
  return NULL;
}