Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_moderation / content_moderation.install
index e33a35973c6c94a66b5120a412c40894f9cf9c09..ddeecb5624eef13378e20263dd5c546c2c7a92d5 100644 (file)
@@ -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('workspaces')) {
+    $requirements['workspaces_incompatibility'] = [
+      'severity' => REQUIREMENT_ERROR,
+      'description' => t('Content Moderation can not be installed when Workspaces is also installed.'),
+    ];
+  }
+
+  return $requirements;
+}
+
 /**
  * Remove the 'content_revision_tracker' table.
  */