protected function MigrateUpgradeDrushRunner::setEntityProperties in Migrate Upgrade 8.3
Set entity properties.
Parameters
\Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The entity to update.
array $properties: The properties to update.
1 call to MigrateUpgradeDrushRunner::setEntityProperties()
- MigrateUpgradeDrushRunner::export in src/
MigrateUpgradeDrushRunner.php - Export the configured migration plugins as configuration entities.
File
- src/
MigrateUpgradeDrushRunner.php, line 334
Class
- MigrateUpgradeDrushRunner
- Class MigrateUpgradeDrushRunner.
Namespace
Drupal\migrate_upgradeCode
protected function setEntityProperties(ConfigEntityInterface $entity, array $properties) {
foreach ($properties as $key => $value) {
$entity
->set($key, $value);
}
foreach ($entity as $property => $value) {
// Filter out values not in updated properties.
if (!isset($properties[$property])) {
$entity
->set($property, NULL);
}
}
}