Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_moderation / src / EntityTypeInfo.php
index c03cf4922036a6bf5afdb619aaf66924b41e7c2b..f54943d427ddb4012c8655271e287af2a4e6605c 100644 (file)
@@ -119,7 +119,6 @@ class EntityTypeInfo implements ContainerInjectionInterface {
     );
   }
 
-
   /**
    * Adds Moderation configuration to appropriate entity types.
    *
@@ -131,7 +130,7 @@ class EntityTypeInfo implements ContainerInjectionInterface {
   public function entityTypeAlter(array &$entity_types) {
     foreach ($entity_types as $entity_type_id => $entity_type) {
       // The ContentModerationState entity type should never be moderated.
-      if ($entity_type->isRevisionable() && $entity_type_id != 'content_moderation_state') {
+      if ($entity_type->isRevisionable() && !$entity_type->isInternal()) {
         $entity_types[$entity_type_id] = $this->addModerationToEntityType($entity_type);
       }
     }