public static function RenderCache::callOriginalFunction in Render cache 7.2
Calls the original function in case the container is not yet booted.
Parameters
string $function: The function name.
array $args: The function args.
Return value
NULL|mixed Returns what the original function returns.
4 calls to RenderCache::callOriginalFunction()
- RenderCache::drupal_add_css in lib/
RenderCache.php - Overrides drupal_add_css().
- RenderCache::drupal_add_js in lib/
RenderCache.php - Overrides drupal_add_js().
- RenderCache::drupal_add_library in lib/
RenderCache.php - Overrides drupal_add_library().
- RenderCache::drupal_process_attached in lib/
RenderCache.php - Overrides drupal_process_attached().
File
- lib/
RenderCache.php, line 220 - Contains RenderCache
Class
- RenderCache
- Static Service Container wrapper wrapping Drupal class.
Code
public static function callOriginalFunction($function, $args) {
global $conf;
$name = $function . "_function";
$old = $conf[$name];
unset($conf[$name]);
$return = call_user_func_array($function, $args);
$conf[$name] = $old;
return $return;
}