Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
domain
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
domain
Commits
d894f883
Commit
d894f883
authored
1 year ago
by
Benjamin R
Committed by
Ken Rickard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3336388
by benJBmC: Update getDrupalVersion method for D10
parent
00632556
No related branches found
No related tags found
1 merge request
!61
phpcs error
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
domain_source/src/DomainSourceServiceProvider.php
+2
-2
2 additions, 2 deletions
domain_source/src/DomainSourceServiceProvider.php
with
2 additions
and
2 deletions
domain_source/src/DomainSourceServiceProvider.php
+
2
−
2
View file @
d894f883
...
...
@@ -27,10 +27,10 @@ class DomainSourceServiceProvider extends ServiceProviderBase {
* Determines the Drupal version.
*
* @return int
* The core num
b
eric version.
* The core numeric version.
*/
private
function
getDrupalVersion
()
{
return
(
int
)
substr
(
\Drupal
::
VERSION
,
0
,
1
)
;
return
(
int
)
explode
(
'.'
,
\Drupal
::
VERSION
)[
0
]
;
}
}
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