Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
5715be72
Commit
5715be72
authored
Mar 05, 2014
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2205897
by damiankloip: Remove ckeditor.languages cache bin.
parent
4b736434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
core/modules/ckeditor/ckeditor.services.yml
core/modules/ckeditor/ckeditor.services.yml
+0
-7
core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
...s/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
+2
-2
No files found.
core/modules/ckeditor/ckeditor.services.yml
View file @
5715be72
...
...
@@ -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
]
core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
View file @
5715be72
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment