You are here

public function Migration::set in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::set()
  2. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::set()

File

core/modules/migrate/src/Plugin/Migration.php, line 615

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function set($property_name, $value) {
  if ($property_name == 'source') {

    // Invalidate the source plugin.
    unset($this->sourcePlugin);
  }
  elseif ($property_name === 'destination') {

    // Invalidate the destination plugin.
    unset($this->destinationPlugin);
  }
  $this->{$property_name} = $value;
  return $this;
}