public function EntityStructureWrapper::__get in Entity API 7
Magic method: Get a wrapper for a property.
File
- includes/
entity.wrapper.inc, line 432 - Provides wrappers allowing easy usage of the entity metadata.
Class
- EntityStructureWrapper
- Provides a general wrapper for any data structure. For this to work the metadata has to be passed during construction.
Code
public function __get($name) {
if (strpos($name, 'krumo') === 0) {
// #914934 Ugly workaround to allow krumo to write its recursion property.
// This is necessary to make dpm() work without throwing exceptions.
return NULL;
}
$get = $this
->get($name);
return $get;
}