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
1 <?php
2
3 /**
4  * @file
5  * Install, update and uninstall functions for the Content Moderation module.
6  */
7
8 /**
9  * Implements hook_requirements().
10  */
11 function content_moderation_requirements($phase) {
12   $requirements = [];
13   if ($phase === 'install' && \Drupal::moduleHandler()->moduleExists('workspaces')) {
14     $requirements['workspaces_incompatibility'] = [
15       'severity' => REQUIREMENT_ERROR,
16       'description' => t('Content Moderation can not be installed when Workspaces is also installed.'),
17     ];
18   }
19
20   return $requirements;
21 }
22
23 /**
24  * Remove the 'content_revision_tracker' table.
25  */
26 function content_moderation_update_8401() {
27   $database_schema = \Drupal::database()->schema();
28   if ($database_schema->tableExists('content_revision_tracker')) {
29     $database_schema->dropTable('content_revision_tracker');
30   }
31 }