Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!1567
Issue
#3250585
: Use lifecycle: experimental instead of the current experimental: true in the .info.yml-files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3250585
: Use lifecycle: experimental instead of the current experimental: true in the .info.yml-files
issue/drupal-3250585:3250585-use-lifecycle-experimental
into
9.4.x
Overview
19
Commits
20
Pipelines
0
Changes
12
Closed
spokje
requested to merge
issue/drupal-3250585:3250585-use-lifecycle-experimental
into
9.4.x
3 years ago
Overview
14
Commits
20
Pipelines
0
Changes
12
Expand
0
0
Merge request reports
Compare
9.4.x
version 18
bea9d4a3
3 years ago
version 17
d069e334
3 years ago
version 16
d8c05208
3 years ago
version 15
38696346
3 years ago
version 14
c99b647f
3 years ago
version 13
8544220b
3 years ago
version 12
8aa00eeb
3 years ago
version 11
34f74eca
3 years ago
version 10
2911bf5c
3 years ago
version 9
28f6e904
3 years ago
version 8
136bf319
3 years ago
version 7
8191eada
3 years ago
version 6
7c1197ca
3 years ago
version 5
0761f473
3 years ago
version 4
62221607
3 years ago
version 3
3039b5ff
3 years ago
version 2
b8c6179f
3 years ago
version 1
626bbd0b
3 years ago
9.4.x (base)
and
latest version
latest version
94544db4
20 commits,
3 years ago
version 18
bea9d4a3
19 commits,
3 years ago
version 17
d069e334
18 commits,
3 years ago
version 16
d8c05208
17 commits,
3 years ago
version 15
38696346
16 commits,
3 years ago
version 14
c99b647f
15 commits,
3 years ago
version 13
8544220b
14 commits,
3 years ago
version 12
8aa00eeb
13 commits,
3 years ago
version 11
34f74eca
12 commits,
3 years ago
version 10
2911bf5c
11 commits,
3 years ago
version 9
28f6e904
9 commits,
3 years ago
version 8
136bf319
8 commits,
3 years ago
version 7
8191eada
7 commits,
3 years ago
version 6
7c1197ca
6 commits,
3 years ago
version 5
0761f473
5 commits,
3 years ago
version 4
62221607
4 commits,
3 years ago
version 3
3039b5ff
3 commits,
3 years ago
version 2
b8c6179f
2 commits,
3 years ago
version 1
626bbd0b
1 commit,
3 years ago
12 files
+
241
−
54
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Extension/Extension.php
+
17
−
0
Options
@@ -192,4 +192,21 @@ public function __wakeup() {
$this
->
root
=
$container
&&
$container
->
hasParameter
(
'app.root'
)
?
$container
->
getParameter
(
'app.root'
)
:
DRUPAL_ROOT
;
}
/**
* Checks if an extension is marked as experimental.
*
* @return bool
* TRUE if an extension is marked as experimental, FALSE otherwise.
*/
public
function
isExperimental
():
bool
{
// Currently, this function checks for both the key/value pairs
// 'experimental: true' and 'lifecycle: experimental' to determine if an
// extension is marked as experimental.
// @todo Remove the check for 'experimental: true' as part of
// https://www.drupal.org/node/3250342
return
(
isset
(
$this
->
info
[
'experimental'
])
&&
$this
->
info
[
'experimental'
])
||
(
isset
(
$this
->
info
[
ExtensionLifecycle
::
LIFECYCLE_IDENTIFIER
])
&&
$this
->
info
[
ExtensionLifecycle
::
LIFECYCLE_IDENTIFIER
]
===
ExtensionLifecycle
::
EXPERIMENTAL
);
}
}
Loading