Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHS-5986: Uninstall Default Paragraphs module #1710

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/default/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ module:
hs_news_display: 0
hs_page_reports: 0
hs_paragraph_types: 0
hs_paragraphs_between: 0
hs_person: 0
hs_person_display: 0
hs_postcard: 0
Expand Down Expand Up @@ -182,7 +181,6 @@ module:
node_revision_delete: 0
oembed_providers: 0
options: 0
paragraphs_browser: 0
paragraphs_edit: 0
paragraphs_features: 0
path: 0
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ public function __construct(ModuleHandlerInterface $module_handler, ConfigFactor
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection->get('paragraphs_browser.paragraphs_browser_controller')) {
$route->setOption('_admin_route', TRUE);
}

if (($route = $collection->get('block.admin_display')) && $this->moduleHandler->moduleExists('block_content_permissions')) {
$route->setRequirement('_permission', 'administer blocks+view restricted block content');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ install:
- 'humsci:hs_news'
- 'humsci:hs_news_display'
- 'humsci:hs_page_reports'
- 'humsci:hs_paragraphs_between'
- 'humsci:hs_person'
- 'humsci:hs_person_display'
- 'humsci:hs_postcard'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1185,3 +1185,17 @@ function su_humsci_profile_update_9720() {
...$block_info,
])->save();
}

/**
* Uninstall hs_paragraphs_between and paragraphs_browser.
*/
function su_humsci_profile_update_9721() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will conflict with the other PR to uninstall honeypot.

$config_factory = \Drupal::configFactory();
$config_factory->getEditable('paragraphs_browser.paragraphs_browser_type.content')->delete();
Comment on lines +1193 to +1194
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't necessary.


\Drupal::service('module_installer')->uninstall([
'hs_paragraphs_between',
'paragraphs_browser',
]);

}
Loading