Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sobki_profile_bootstrap
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
sobki_profile_bootstrap
Commits
dd16a214
Commit
dd16a214
authored
11 months ago
by
Florent Torregrosa
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3479081
by grimreaper: Add a log in installation steps
parent
1baace58
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!22
Issue #3479081 by grimreaper: Add a log in installation steps
Pipeline
#307520
passed
11 months ago
Stage: build
Stage: validate
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sobki_profile_bootstrap.profile
+7
-2
7 additions, 2 deletions
sobki_profile_bootstrap.profile
with
7 additions
and
2 deletions
sobki_profile_bootstrap.profile
+
7
−
2
View file @
dd16a214
...
...
@@ -48,12 +48,17 @@ function sobki_profile_bootstrap_enable_default_content(array &$install_state):
* An array of information about the current installation state.
*/
function
sobki_profile_bootstrap_set_front_page
(
array
&
$install_state
):
void
{
$uuid
=
'5606505e-cd84-426f-8aee-d56ef86e8935'
;
$nodes
=
\Drupal
::
entityTypeManager
()
->
getStorage
(
'node'
)
->
loadByProperties
([
'uuid'
=>
'5606505e-cd84-426f-8aee-d56ef86e8935'
,
'uuid'
=>
$uuid
,
]);
if
(
empty
(
$nodes
))
{
\Drupal
::
logger
(
'sobki_profile_bootstrap'
)
->
warning
(
'The node with the UUID @uuid cannot be found. Impossible to set it as front page.'
,
[
'@uuid'
=>
$uuid
,
]);
return
;
}
...
...
@@ -62,5 +67,5 @@ function sobki_profile_bootstrap_set_front_page(array &$install_state): void {
\Drupal
::
configFactory
()
->
getEditable
(
'system.site'
)
->
set
(
'page.front'
,
'/node/'
.
$node
->
id
())
->
save
(
TRUE
);
->
save
();
}
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
sign in
to comment