Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
ws_event
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
ws_event
Merge requests
!68
fix: Move module installers up to avoid config import failure.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
fix: Move module installers up to avoid config import failure.
fix-config-import-fail
into
1.4.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
fix: Move module installers up to avoid config import failure.
Avi Schwab
requested to merge
fix-config-import-fail
into
1.4.x
Apr 11, 2024
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
1.4.x
1.4.x (HEAD)
and
latest version
latest version
ea25584f
1 commit,
Apr 11, 2024
1 file
+
13
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ws_event.install
+
13
−
0
View file @ 51b0e226
Edit in single-file editor
Open in Web IDE
Show full file
@@ -340,6 +340,19 @@ function ws_event_update_9018(&$sandbox) {
* Add content type to the Default sitemap in the Simple XML Sitemap config.
*/
function
ws_event_update_9019
(
&
$sandbox
)
{
$module_handler
=
\Drupal
::
moduleHandler
();
if
(
!
$module_handler
->
moduleExists
(
'smart_date_recur'
))
{
\Drupal
::
service
(
'module_installer'
)
->
install
([
'smart_date'
],
FALSE
);
\Drupal
::
service
(
'module_installer'
)
->
install
([
'smart_date_recur'
],
FALSE
);
}
if
(
!
$module_handler
->
moduleExists
(
'addtocal_augment'
))
{
\Drupal
::
service
(
'module_installer'
)
->
install
([
'date_augmenter'
],
FALSE
);
\Drupal
::
service
(
'module_installer'
)
->
install
([
'addtocal_augment'
],
FALSE
);
}
if
(
!
$module_handler
->
moduleExists
(
'schema_event'
))
{
\Drupal
::
service
(
'module_installer'
)
->
install
([
'schema_event'
],
FALSE
);
}
$path
=
\Drupal
::
service
(
'extension.list.module'
)
->
getPath
(
'ws_event'
)
.
'/config/install'
;
/** @var \Drupal\config_import\ConfigImporterService $config_importer */
$config_importer
=
\Drupal
::
service
(
'config_import.importer'
);
Loading