Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iframe-3199001
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
iframe-3199001
Commits
a6254cc3
Commit
a6254cc3
authored
4 years ago
by
neffets
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3128522
: Uninstall failed on Iframe 8.x-1.14 (want to upgrade to v2)
parent
c33e14ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iframe.install
+9
-6
9 additions, 6 deletions
iframe.install
with
9 additions
and
6 deletions
iframe.install
+
9
−
6
View file @
a6254cc3
...
...
@@ -18,12 +18,15 @@ function iframe_install() {
/**
* Implements hook_uninstall().
*/
function
iframe_uninstall
()
{
// Remove the iframe fields.
$fields
=
EntityStorageInterface
::
loadByProperties
(
'field_storage_config'
,
[
'type'
=>
'iframe'
]);
foreach
(
$fields
as
$field
)
{
$field
->
delete
();
}
function
iframe_uninstall
(
$is_syncing
)
{
// Remove all from cache.
\Drupal
::
cache
(
'data'
)
->
deleteAll
();
// Remove the iframe fields.
$storage
=
\Drupal
::
entityTypeManager
()
->
getStorage
(
'field_storage_config'
);
$fields
=
$storage
->
loadByProperties
([
'type'
=>
'iframe'
,
]);
$storage
->
delete
(
$fields
);
}
/**
...
...
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