Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / quickedit / src / QuickEditController.php
index 0f470b1e474d0c684f3f94b52d45708fd53b5636..3bed196661f71bcc05eb5fcea1c8f1044e839d2c 100644 (file)
@@ -221,7 +221,7 @@ class QuickEditController extends ControllerBase {
       $errors = $form_state->getErrors();
       if (count($errors)) {
         $status_messages = [
-          '#type' => 'status_messages'
+          '#type' => 'status_messages',
         ];
         $response->addCommand(new FieldFormValidationErrorsCommand($this->renderer->renderRoot($status_messages)));
       }
@@ -293,7 +293,7 @@ class QuickEditController extends ControllerBase {
     // to identify it.
     $output = [
       'entity_type' => $entity->getEntityTypeId(),
-      'entity_id' => $entity->id()
+      'entity_id' => $entity->id(),
     ];
 
     // Respond to client that the entity was saved properly.