NullIdMap.php in Drupal 8
File
core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php
View source
<?php
namespace Drupal\migrate\Plugin\migrate\id_map;
use Drupal\Core\Plugin\PluginBase;
use Drupal\migrate\MigrateMessageInterface;
use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;
class NullIdMap extends PluginBase implements MigrateIdMapInterface {
public function setMessage(MigrateMessageInterface $message) {
}
public function getRowBySource(array $source_id_values) {
return [];
}
public function getRowByDestination(array $destination_id_values) {
return [];
}
public function getRowsNeedingUpdate($count) {
return 0;
}
public function lookupSourceId(array $destination_id_values) {
return [];
}
public function lookupDestinationId(array $source_id_values) {
@trigger_error(__NAMESPACE__ . '\\NullIdMap::lookupDestinationId() is deprecated in drupal:8.1.0 and is removed from drupal:9.0.0. Use Sql::lookupDestinationIds() instead. See https://www.drupal.org/node/2725809', E_USER_DEPRECATED);
return [];
}
public function lookupDestinationIds(array $source_id_values) {
return [];
}
public function saveIdMapping(Row $row, array $destination_id_values, $source_row_status = MigrateIdMapInterface::STATUS_IMPORTED, $rollback_action = MigrateIdMapInterface::ROLLBACK_DELETE) {
}
public function saveMessage(array $source_id_values, $message, $level = MigrationInterface::MESSAGE_ERROR) {
}
public function getMessages(array $source_id_values = [], $level = NULL) {
return new \ArrayIterator([]);
}
public function getMessageIterator(array $source_id_values = [], $level = NULL) {
@trigger_error('getMessageIterator() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use getMessages() instead. See https://www.drupal.org/node/3060969', E_USER_DEPRECATED);
return $this
->getMessages($source_id_values, $level);
}
public function prepareUpdate() {
}
public function processedCount() {
return 0;
}
public function importedCount() {
return 0;
}
public function updateCount() {
return 0;
}
public function errorCount() {
return 0;
}
public function messageCount() {
return 0;
}
public function delete(array $source_id_values, $messages_only = FALSE) {
}
public function deleteDestination(array $destination_id_values) {
}
public function setUpdate(array $source_id_values) {
}
public function clearMessages() {
}
public function destroy() {
}
public function currentDestination() {
return NULL;
}
public function currentSource() {
return NULL;
}
public function getQualifiedMapTableName() {
return '';
}
public function rewind() {
return NULL;
}
public function current() {
return NULL;
}
public function key() {
return '';
}
public function next() {
return NULL;
}
public function valid() {
return FALSE;
}
}
Classes
Name |
Description |
NullIdMap |
Defines the null ID map implementation. |