diff core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php	Thu Feb 28 13:21:36 2019 +0000
@@ -321,13 +321,13 @@
       if ($field_definition->getName() === $this->entityType->getKey('id')) {
         // String IDs can be set when creating the entity.
         if (!($entity->isNew() && $field_definition->getType() === 'string')) {
-          return $return_as_object ? AccessResult::forbidden('The entity ID cannot be changed')->addCacheableDependency($entity) : FALSE;
+          return $return_as_object ? AccessResult::forbidden('The entity ID cannot be changed.')->addCacheableDependency($entity) : FALSE;
         }
       }
       elseif ($field_definition->getName() === $this->entityType->getKey('uuid')) {
         // UUIDs can be set when creating an entity.
         if (!$entity->isNew()) {
-          return $return_as_object ? AccessResult::forbidden('The entity UUID cannot be changed')->addCacheableDependency($entity) : FALSE;
+          return $return_as_object ? AccessResult::forbidden('The entity UUID cannot be changed.')->addCacheableDependency($entity) : FALSE;
         }
       }
     }