You are here

public function Decorator::__get in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__get()
  2. 8 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__get()
  3. 8.2 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;
}