Skip to content
Snippets Groups Projects
Commit 5409fffb authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2971699 by amateescu, timmillwood, catch, plach, Sam152: Content...

Issue #2971699 by amateescu, timmillwood, catch, plach, Sam152: Content Moderation and Workspace don't work together
parent 0f2417a7
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,21 @@
* Install, update and uninstall functions for the Content Moderation module.
*/
/**
* Implements hook_requirements().
*/
function content_moderation_requirements($phase) {
$requirements = [];
if ($phase === 'install' && \Drupal::moduleHandler()->moduleExists('workspace')) {
$requirements['workspace_incompatibility'] = [
'severity' => REQUIREMENT_ERROR,
'description' => t('Content Moderation can not be installed when Workspace is also installed.'),
];
}
return $requirements;
}
/**
* Remove the 'content_revision_tracker' table.
*/
......
......@@ -7,6 +7,21 @@
use Drupal\workspace\Entity\Workspace;
/**
* Implements hook_requirements().
*/
function workspace_requirements($phase) {
$requirements = [];
if ($phase === 'install' && \Drupal::moduleHandler()->moduleExists('content_moderation')) {
$requirements['workspace_incompatibility'] = [
'severity' => REQUIREMENT_ERROR,
'description' => t('Workspace can not be installed when Content Moderation is also installed.'),
];
}
return $requirements;
}
/**
* Implements hook_install().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment