NullDestination.php

Same filename in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/destination/NullDestination.php
  2. 8.9.x core/modules/migrate/src/Plugin/migrate/destination/NullDestination.php
  3. 10 core/modules/migrate/src/Plugin/migrate/destination/NullDestination.php

Namespace

Drupal\migrate\Plugin\migrate\destination

File

core/modules/migrate/src/Plugin/migrate/destination/NullDestination.php

View source
<?php

namespace Drupal\migrate\Plugin\migrate\destination;

use Drupal\migrate\Attribute\MigrateDestination;
use Drupal\migrate\Row;

/**
 * Provides null destination plugin.
 */
class NullDestination extends DestinationBase {
    
    /**
     * {@inheritdoc}
     */
    public function getIds() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    public function fields() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    public function import(Row $row, array $old_destination_id_values = []) {
    }

}

Classes

Title Deprecated Summary
NullDestination Provides null destination plugin.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.