Skip to content
Snippets Groups Projects
Commit c8abbfc8 authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3230445 by Grimreaper, NightAr, dmn_dvs: Revision import plugin...

Issue #3230445 by Grimreaper, NightAr, dmn_dvs: Revision import plugin triggers logs for some entity type
parent 85108f85
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,12 @@ class Revision extends ImportProcessorPluginBase implements PluginFormInterface
try {
$revision_metadata_keys = $processed_entity->getEntityType()->getRevisionMetadataKeys();
$processed_entity->{$revision_metadata_keys['revision_created']}->value = $this->time->getRequestTime();
$processed_entity->{$revision_metadata_keys['revision_log_message']}->value = $this->t('Auto created revision during Entity Share synchronization.');
if (isset($revision_metadata_keys['revision_created'])) {
$processed_entity->{$revision_metadata_keys['revision_created']}->value = $this->time->getRequestTime();
}
if (isset($revision_metadata_keys['revision_log_message'])) {
$processed_entity->{$revision_metadata_keys['revision_log_message']}->value = $this->t('Auto created revision during Entity Share synchronization.');
}
}
catch (\Exception $e) {
$this->messenger()->addError($this->t('There was a problem: @message', ['@message' => $e->getMessage()]));
......
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