Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3174996
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3174996
Commits
5cd1a5fb
Commit
5cd1a5fb
authored
11 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2002504
by endorn, heddn: Rename Views method gather_headers() to gatherHeaders().
parent
4c40f821
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
+3
-3
3 additions, 3 deletions
...s/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
with
3 additions
and
3 deletions
core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
+
3
−
3
View file @
5cd1a5fb
...
...
@@ -130,7 +130,7 @@ public function cacheSet($type) {
break
;
case
'output'
:
$this
->
storage
[
'output'
]
=
$this
->
view
->
display_handler
->
output
;
$this
->
gather
_h
eaders
();
$this
->
gather
H
eaders
();
cache
(
$this
->
table
)
->
set
(
$this
->
generateOutputKey
(),
$this
->
storage
,
$this
->
cacheSetExpire
(
$type
));
break
;
}
...
...
@@ -210,7 +210,7 @@ function post_render(&$output) { }
* Start caching the html head.
*
* This takes a snapshot of the current system state so that we don't
* duplicate it. Later on, when gather
_h
eaders() is run, this information
* duplicate it. Later on, when gather
H
eaders() is run, this information
* will be removed so that we don't hold onto it.
*
* @see drupal_add_html_head()
...
...
@@ -222,7 +222,7 @@ public function cacheStart() {
/**
* Gather the JS/CSS from the render array, the html head from the band data.
*/
function
gather
_h
eaders
()
{
protected
function
gather
H
eaders
()
{
// Simple replacement for head
if
(
isset
(
$this
->
storage
[
'head'
]))
{
$this
->
storage
[
'head'
]
=
str_replace
(
$this
->
storage
[
'head'
],
''
,
drupal_add_html_head
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment