Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
automatic_updates
Merge requests
!33
Issue
#3231996
: Ensure file system is writeable
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3231996
: Ensure file system is writeable
issue/automatic_updates-3231996:3231996-ensure-file-system
into
8.x-2.x
Overview
4
Commits
12
Pipelines
0
Changes
3
Merged
Kunal Sachdev
requested to merge
issue/automatic_updates-3231996:3231996-ensure-file-system
into
8.x-2.x
3 years ago
Overview
1
Commits
12
Pipelines
0
Changes
70
Expand
0
0
Merge request reports
Compare
version 1
version 21
6413398b
3 years ago
version 20
37a8e431
3 years ago
version 19
d9805e04
3 years ago
version 18
a626a341
3 years ago
version 17
85f13324
3 years ago
version 16
1f7e1365
3 years ago
version 15
4bef5424
3 years ago
version 14
4af28094
3 years ago
version 13
9e90b0ea
3 years ago
version 12
694792a0
3 years ago
version 11
20371a2a
3 years ago
version 10
0ee604da
3 years ago
version 9
52d5fa4c
3 years ago
version 8
5b18a54f
3 years ago
version 7
b3f9849b
3 years ago
version 6
4885cd90
3 years ago
version 5
cc8e9be0
3 years ago
version 4
36dc1c4a
3 years ago
version 3
6a27714e
3 years ago
version 2
16eb0ee9
3 years ago
version 1
f439151d
3 years ago
8.x-2.x (base)
and
version 7
latest version
6413398b
12 commits,
3 years ago
version 21
6413398b
12 commits,
3 years ago
version 20
37a8e431
11 commits,
3 years ago
version 19
d9805e04
10 commits,
3 years ago
version 18
a626a341
9 commits,
3 years ago
version 17
85f13324
8 commits,
3 years ago
version 16
1f7e1365
7 commits,
3 years ago
version 15
4bef5424
6 commits,
3 years ago
version 14
4af28094
5 commits,
3 years ago
version 13
9e90b0ea
4 commits,
3 years ago
version 12
694792a0
3 commits,
3 years ago
version 11
20371a2a
2 commits,
3 years ago
version 10
0ee604da
1 commit,
3 years ago
version 9
52d5fa4c
12 commits,
3 years ago
version 8
5b18a54f
11 commits,
3 years ago
version 7
b3f9849b
8 commits,
3 years ago
version 6
4885cd90
7 commits,
3 years ago
version 5
cc8e9be0
6 commits,
3 years ago
version 4
36dc1c4a
5 commits,
3 years ago
version 3
6a27714e
3 commits,
3 years ago
version 2
16eb0ee9
2 commits,
3 years ago
version 1
f439151d
1 commit,
3 years ago
Show latest version
70 files
+
2576
−
701
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
70
Search (e.g. *.vue) (Ctrl+P)
automatic_updates_9_3_shim/automatic_updates_9_3_shim.module
0 → 100644
+
43
−
0
Options
<?php
/**
* @file
* Contains hook implementations for Automatic Updates 9.3 shim module.
*/
/**
* Implements hook_page_top().
*/
function
automatic_updates_9_3_shim_page_top
()
{
// @todo Rely on the route option after https://www.drupal.org/i/3236497 is
// committed.
// @todo Remove 'system.batch_page.html' after
// https://www.drupal.org/i/3238311 is committed.
$skip_routes
=
[
'system.batch_page.html'
,
'automatic_updates.confirmation_page'
,
'automatic_updates.report_update'
,
'automatic_updates.module_update'
,
];
$route_name
=
\Drupal
::
routeMatch
()
->
getRouteName
();
if
(
!
in_array
(
$route_name
,
$skip_routes
,
TRUE
)
&&
function_exists
(
'update_page_top'
))
{
update_page_top
();
}
}
/**
* Implements hook_module_implements_alter().
*
* @todo Remove after https://www.drupal.org/i/3236497 is committed.
*/
function
automatic_updates_9_3_shim_module_implements_alter
(
&
$implementations
,
$hook
)
{
if
(
$hook
===
'page_top'
)
{
// Remove hook_page_top() implementation from the Update module. This '
// implementation displays error messages about security releases. We call
// this implementation in our own automatic_updates_page_top() except on our
// own routes to avoid stale messages about the security releases after an
// update.
unset
(
$implementations
[
'update'
]);
}
}
Loading