public function EventHandler::objectCached in Services Client 7.2
Retrieve instance of object initialized with object cache.
Return value
self
File
- include/
event.inc, line 432
Class
- EventHandler
- Event handler plugin.
Code
public function objectCached() {
// If object is not edit locked put it to object cache.
if (!$this
->getEditLock()) {
$class = get_class($this);
$item = $this
->getObjectCacheOrCache();
return new $this($item, $item->config);
}
return $this;
}