Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group_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
group_domain
Merge requests
!22
Issue
#3502442
: Added install file to remove configurations on module uninstall
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3502442
: Added install file to remove configurations on module uninstall
issue/group_domain-3502442:3502442-cannot-re-install-module
into
3.0.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Open
Nidhish Nanavati
requested to merge
issue/group_domain-3502442:3502442-cannot-re-install-module
into
3.0.x
3 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3502442
0
0
Merge request reports
Compare
3.0.x
3.0.x (HEAD)
and
latest version
latest version
46eaee8f
1 commit,
3 months ago
1 file
+
30
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
group_domain.install
0 → 100644
+
30
−
0
Options
<?php
/**
* @file
* Install, update and uninstall functions for Group domain.
*/
/**
* Implements hook_uninstall().
*
* Deletes the configuration for field.storage.group.group_domain
* and clears cache.
*/
function
group_domain_uninstall
()
{
// Get the configuration factory service.
$config_factory
=
\Drupal
::
service
(
'config.factory'
);
// Load the configuration for field.storage.group.group_domain
// and delete the configuration.
$config
=
$config_factory
->
getEditable
(
'field.storage.group.group_domain'
);
if
(
!
$config
->
isNew
())
{
// Delete the configuration.
$config
->
delete
();
}
// Clear specific cache bins.
\Drupal
::
cache
(
'data'
)
->
deleteAll
();
\Drupal
::
cache
(
'render'
)
->
deleteAll
();
}
Loading