Skip to content
Snippets Groups Projects
Commit d21069df authored by Lars Schröter's avatar Lars Schröter Committed by Lucas Hedding
Browse files

Issue #3344109 by osopolar, heddn: Add revision ID as source key to...

Issue #3344109 by osopolar, heddn: Add revision ID as source key to ContentEntity migration source (as in core)
parent 1174c5c1
No related branches found
No related tags found
1 merge request!5Issue #3344109: Add revision ID as source key to ContentEntity migration source (as in core)
Pipeline #228242 passed with warnings
......@@ -287,6 +287,10 @@ class ContentEntity extends SqlBase {
$idKey = $entityDefinition->getKey('id');
$ids[$idKey] = $this->getDefinitionFromEntity($idKey);
if (!empty($this->configuration['add_revision_id']) && $entityDefinition->isRevisionable()) {
$revisionKey = $entityDefinition->getKey('revision');
$ids[$revisionKey] = $this->getDefinitionFromEntity($revisionKey);
}
if ($entityDefinition->isTranslatable()) {
$langcodeKey = $entityDefinition->getKey('langcode');
$ids[$langcodeKey] = $this->getDefinitionFromEntity($langcodeKey);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment