Unverified Commit bd2a1eab 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
parent 8dccf4b3
......@@ -6,7 +6,7 @@ migration_tags:
plugin: d6_view_mode
targetEntityType: node
entity_type: node
status: true
......@@ -33,7 +33,7 @@ process:
5: "Print"
teaser: "Teaser"
full: "Full"
targetEntityType: 'constants/targetEntityType'
targetEntityType: 'constants/entity_type'
status: 'constants/status'
plugin: entity:entity_view_mode
......@@ -71,6 +71,7 @@ public function getIds() {
public function calculateDependencies() {
$this->dependencies = parent::calculateDependencies();
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());
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