Same filename in this branch
- 10 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php
- 10 core/modules/migrate_drupal/src/Plugin/migrate/source/EmptySource.php
Same filename and directory in other branches
- 8.9.x core/modules/migrate/src/Plugin/migrate/source/EmptySource.php
- 9 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php
Namespace
Drupal\migrate\Plugin\migrate\source
File
core/modules/migrate/src/Plugin/migrate/source/EmptySource.php
View source
<?php
namespace Drupal\migrate\Plugin\migrate\source;
class EmptySource extends SourcePluginBase {
public function fields() {
return [
'id' => $this
->t('ID'),
];
}
public function initializeIterator() {
return new \ArrayIterator([
[
'id' => '',
],
]);
}
public function __toString() {
return '';
}
public function getIds() {
$ids['id']['type'] = 'string';
return $ids;
}
protected function doCount() {
return 1;
}
}
Classes
Name |
Description |
EmptySource |
Source returning a row based on the constants provided. |