You are here

SetNull.php in Workbench Moderation to Content Moderation 8.2

File

src/Plugin/migrate/process/SetNull.php
View source
<?php

namespace Drupal\wbm2cm\Plugin\migrate\process;

use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
 * @MigrateProcessPlugin(
 *   id = "unset"
 * )
 */
class SetNull extends ProcessPluginBase {

  /**
   * {@inheritdoc}
   */
  public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
    $row
      ->setDestinationProperty($destination_property, NULL);
  }

}

Classes

Namesort descending Description
SetNull Plugin annotation @MigrateProcessPlugin( id = "unset" )