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
!1046
Issue
#3437409
ForbidCoreChangesValidator.php
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3437409
ForbidCoreChangesValidator.php
issue/automatic_updates-3437409:3437409-dont-allow-core
into
3.0.x
Overview
11
Commits
9
Pipelines
10
Changes
3
2 unresolved threads
Hide all comments
Merged
Ted Bowman
requested to merge
issue/automatic_updates-3437409:3437409-dont-allow-core
into
3.0.x
11 months ago
Overview
11
Commits
9
Pipelines
10
Changes
4
2 unresolved threads
Hide all comments
Expand
Closes
#3437409
0
0
Merge request reports
Compare
version 8
version 8
afca55cb
11 months ago
version 7
d5b8d0ac
11 months ago
version 6
8817d4b7
11 months ago
version 5
fcc2a654
11 months ago
version 4
9a6f76c5
11 months ago
version 3
aacdc1ed
11 months ago
version 2
58048535
11 months ago
version 1
89c71933
11 months ago
3.0.x (base)
and
latest version
latest version
1227dd21
9 commits,
11 months ago
version 8
afca55cb
8 commits,
11 months ago
version 7
d5b8d0ac
7 commits,
11 months ago
version 6
8817d4b7
6 commits,
11 months ago
version 5
fcc2a654
5 commits,
11 months ago
version 4
9a6f76c5
4 commits,
11 months ago
version 3
aacdc1ed
3 commits,
11 months ago
version 2
58048535
2 commits,
11 months ago
version 1
89c71933
1 commit,
11 months ago
Show latest version
4 files
+
15
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
automatic_updates_extensions/src/Form/UpdaterForm.php
+
8
−
1
Options
@@ -20,6 +20,7 @@ use Drupal\package_manager\PathLocator;
use
Drupal\package_manager
\ProjectInfo
;
use
Drupal\package_manager
\ValidationResult
;
use
Drupal\system\SystemManager
;
use
Drupal\update\ProjectRelease
;
use
Drupal\update\UpdateManagerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\EventDispatcher\EventDispatcherInterface
;
@@ -110,10 +111,16 @@ final class UpdaterForm extends UpdateFormBase {
default
:
$status_message
=
''
;
}
$project_release
=
ProjectRelease
::
createFromArray
(
$update_project
[
'releases'
][
$update_project
[
'recommended'
]]);
$options
[
$project_name
]
=
[
$update_project
[
'title'
]
.
$status_message
,
$update_project
[
'existing_version'
],
$update_project
[
'recommended'
],
$this
->
t
(
'@version (<a href=":url">Release notes</a>)'
,
[
'@version'
=>
$project_release
->
getVersion
(),
':url'
=>
$project_release
->
getReleaseUrl
(),
]),
];
$recommended_versions
[
$project_name
]
=
$update_project
[
'recommended'
];
}
Loading