Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Field / Plugin / Field / FieldWidget / EntityReferenceAutocompleteWidget.php
index d7f9bded440dcbac6418fdb655bd6ad860d12e27..493d6a4f67475e0ec205106f0360109485b149b3 100644 (file)
@@ -107,7 +107,7 @@ class EntityReferenceAutocompleteWidget extends WidgetBase {
     if ($this->getSelectionHandlerSetting('auto_create') && ($bundle = $this->getAutocreateBundle())) {
       $element['#autocreate'] = [
         'bundle' => $bundle,
-        'uid' => ($entity instanceof EntityOwnerInterface) ? $entity->getOwnerId() : \Drupal::currentUser()->id()
+        'uid' => ($entity instanceof EntityOwnerInterface) ? $entity->getOwnerId() : \Drupal::currentUser()->id(),
       ];
     }