Skip to content
Snippets Groups Projects
Commit b9d441f0 authored by Fernando Conceição's avatar Fernando Conceição Committed by Tobias Zimmermann
Browse files

Issue #2290767 by yukare: Replace removed cache() function.

parent 632c2ea3
No related branches found
No related tags found
No related merge requests found
Libraries 8.x-3.x, xxxx-xx-xx
-----------------------------
#2290767 by yukare: Replace removed cache() function.
#2183087 by tstoeckler, rjacobs: Update for removed core functions.
by tstoeckler: Fix tests.
by tstoeckler: Provide required 'type' key in test library info file.
......
......@@ -590,13 +590,13 @@ function libraries_load($name, $variant = NULL) {
$loaded = &drupal_static(__FUNCTION__, array());
if (!isset($loaded[$name])) {
$library = cache('libraries')->get($name);
$library = \Drupal::cache('libraries')->get($name);
if ($library) {
$library = $library->data;
}
else {
$library = libraries_detect($name);
cache('libraries')->set($name, $library);
\Drupal::cache('libraries')->set($name, $library);
}
// If a variant was specified, override the top-level properties with the
// variant properties.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment