Commit 5715be72 authored by catch's avatar catch

Issue #2205897 by damiankloip: Remove ckeditor.languages cache bin.

parent 4b736434
......@@ -2,10 +2,3 @@ services:
plugin.manager.ckeditor.plugin:
class: Drupal\ckeditor\CKEditorPluginManager
parent: default_plugin_manager
cache.ckeditor.languages:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
- { name: cache.bin }
factory_method: get
factory_service: cache_factory
arguments: [ckeditor]
......@@ -313,7 +313,7 @@ public function getLangcodes() {
// be expensive to calculate all the time. The cache is cleared on core
// upgrades which is the only situation the CKEditor file listing should
// change.
$langcode_cache = \Drupal::cache('ckeditor.languages')->get('langcodes');
$langcode_cache = \Drupal::cache()->get('ckeditor.langcodes');
if (!empty($langcode_cache)) {
$langcodes = $langcode_cache->data;
}
......@@ -325,7 +325,7 @@ public function getLangcodes() {
$langcode = $language_file->getBasename('.js');
$langcodes[$langcode] = $langcode;
}
\Drupal::cache('ckeditor.languages')->set('langcodes', $langcodes);
\Drupal::cache()->set('ckeditor.langcodes', $langcodes);
}
// Get language mapping if available to map to Drupal language codes.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment