Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityType.php
index b39fb3fa46abe2681517a75ea4052280fc1376b2..9584ed3e26511dac2b420aa516f128d91d6fde20 100644 (file)
@@ -302,6 +302,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
       'bundle' => '',
       'langcode' => '',
       'default_langcode' => 'default_langcode',
+      'revision_translation_affected' => 'revision_translation_affected',
     ];
     $this->handlers += [
       'access' => 'Drupal\Core\Entity\EntityAccessControlHandler',
@@ -312,7 +313,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
 
     // Automatically add the EntityChanged constraint if the entity type tracks
     // the changed time.
-    if ($this->entityClassImplements(EntityChangedInterface::class) ) {
+    if ($this->entityClassImplements(EntityChangedInterface::class)) {
       $this->addConstraint('EntityChanged');
     }