public static function AuthcacheP13nObjectResourcePreprocessor::processClassConstructor in Authenticated User Page Caching (Authcache) 7.2
Detect a class constructor resource and add defaults.
File
- modules/
authcache_p13n/ includes/ AuthcacheP13nObjectResourcePreprocessor.inc, line 147 - Defines the class AuthcacheP13nObjectResourcePreprocessor.
Class
- AuthcacheP13nObjectResourcePreprocessor
- A utility class suitable for preparing resources for the object factory.
Code
public static function processClassConstructor($resource) {
if (is_array($resource) && isset($resource['#class'])) {
return $resource + array(
'#type' => 'class',
);
}
}