Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityCreateAccessCheck.php
index 9ceac5249d056271df3dd64eadae999c3bfc153b..b3c12a8da803867e73f099b42413c69ce82641f2 100644 (file)
@@ -62,7 +62,7 @@ class EntityCreateAccessCheck implements AccessInterface {
       }
       // If we were unable to replace all placeholders, deny access.
       if (strpos($bundle, '{') !== FALSE) {
-        return AccessResult::neutral();
+        return AccessResult::neutral(sprintf("Could not find '%s' request argument, therefore cannot check create access.", $bundle));
       }
     }
     return $this->entityManager->getAccessControlHandler($entity_type)->createAccess($bundle, $account, [], TRUE);