Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Core / Path / AliasStorage.php
index 4f380125bbef36bd80e804ec47461add41105b87..b6898487197d0b2d9b67644918613fcedc9abb96 100644 (file)
@@ -106,11 +106,11 @@ class AliasStorage implements AliasStorageInterface {
         $this->catchException($e);
         $original = FALSE;
       }
-      $fields['pid'] = $pid;
       $query = $this->connection->update(static::TABLE)
         ->fields($fields)
         ->condition('pid', $pid);
       $pid = $query->execute();
+      $fields['pid'] = $pid;
       $fields['original'] = $original;
       $operation = 'update';
     }
@@ -406,6 +406,8 @@ class AliasStorage implements AliasStorageInterface {
 
   /**
    * Defines the schema for the {url_alias} table.
+   *
+   * @internal
    */
   public static function schemaDefinition() {
     return [