Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sector
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
sector
Commits
bdd3a573
Commit
bdd3a573
authored
1 year ago
by
Stew West
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3414874
: Sector Notices
parent
2a6803cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!110
Issue #3414874 by stewest: Sector Notices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/sector_custom_blocks/modules/sector_notice/sector_notice.install
+5
-2
5 additions, 2 deletions
...custom_blocks/modules/sector_notice/sector_notice.install
with
5 additions
and
2 deletions
modules/sector_custom_blocks/modules/sector_notice/sector_notice.install
+
5
−
2
View file @
bdd3a573
...
...
@@ -32,7 +32,10 @@ function sector_notice_uninstall() {
];
foreach
(
$blocks_to_remove
as
$uuid
)
{
$block_content
=
\Drupal
::
service
(
'entity.repository'
)
->
loadEntityByUuid
(
'block_content'
,
$uuid
);
$block_content
->
delete
();
if
(
$block_content
)
{
$block_content
->
delete
();
}
}
$blockTypeMachineName
=
'sector_notice'
;
...
...
@@ -48,4 +51,4 @@ function sector_notice_uninstall() {
\Drupal
::
logger
(
'sector_notice'
)
->
error
(
t
(
'The block type %type could not be found.'
,
array
(
'%type'
=>
$blockTypeMachineName
)));
}
}
\ No newline at end of file
}
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