summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeqq2018-02-16 23:20:29 (GMT)
committerwillzyx2018-02-16 23:20:29 (GMT)
commit91a1e5bb9ca4c4f0d2b6f7f39afe6ef17a5da486 (patch)
tree01960cf811c65fa3f6faa5a5260a5efcd5714207
parent3844dffa67687cd00501168f411c9b50d8da01d7 (diff)
Issue #2944180 by jeqq: Set the correct path alias langcode when generating nodes with aliases
-rw-r--r--devel_generate/devel_generate.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel_generate/devel_generate.module b/devel_generate/devel_generate.module
index 530a4fb..3affb92 100644
--- a/devel_generate/devel_generate.module
+++ b/devel_generate/devel_generate.module
@@ -53,7 +53,7 @@ function devel_generate_entity_insert(EntityInterface $entity) {
'source' => '/node/' . $entity->id(),
'alias' => '/node-' . $entity->id() . '-' . $entity->bundle(),
);
- \Drupal::service('path.alias_storage')->save($path['source'], $path['alias']);
+ \Drupal::service('path.alias_storage')->save($path['source'], $path['alias'], $entity->language()->getId());
}
// Add node statistics.