Unverified Commit 577be895 authored by alexpott's avatar alexpott
Browse files

Issue #3206932 by Matroskeen, quietone, alexpott: Rename targetEntityType...

Issue #3206932 by Matroskeen, quietone, alexpott: Rename targetEntityType constant in d6_view_mode migration to simplify source plugin

(cherry picked from commit bd2a1eab)
parent b5241ea9
...@@ -6,7 +6,7 @@ migration_tags: ...@@ -6,7 +6,7 @@ migration_tags:
source: source:
plugin: d6_view_mode plugin: d6_view_mode
constants: constants:
targetEntityType: node entity_type: node
status: true status: true
process: process:
mode: mode:
...@@ -33,7 +33,7 @@ process: ...@@ -33,7 +33,7 @@ process:
5: "Print" 5: "Print"
teaser: "Teaser" teaser: "Teaser"
full: "Full" full: "Full"
targetEntityType: 'constants/targetEntityType' targetEntityType: 'constants/entity_type'
status: 'constants/status' status: 'constants/status'
destination: destination:
plugin: entity:entity_view_mode plugin: entity:entity_view_mode
...@@ -71,6 +71,7 @@ public function getIds() { ...@@ -71,6 +71,7 @@ public function getIds() {
public function calculateDependencies() { public function calculateDependencies() {
$this->dependencies = parent::calculateDependencies(); $this->dependencies = parent::calculateDependencies();
if (isset($this->configuration['constants']['targetEntityType'])) { if (isset($this->configuration['constants']['targetEntityType'])) {
@trigger_error('The constant targetEntityType is deprecated in drupal:9.2.0 and is removed in drupal:10.0.0. Use entity_type instead. See https://www.drupal.org/node/3208135', E_USER_DEPRECATED);
$this->addDependency('module', $this->entityTypeManager->getDefinition($this->configuration['constants']['targetEntityType'])->getProvider()); $this->addDependency('module', $this->entityTypeManager->getDefinition($this->configuration['constants']['targetEntityType'])->getProvider());
} }
return $this->dependencies; return $this->dependencies;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment