3 namespace Drupal\migrate\Plugin\migrate\source;
6 * Source returning an empty row.
8 * This is generally useful when needing to create a field using a migration..
14 class EmptySource extends SourcePluginBase {
19 public function fields() {
28 public function initializeIterator() {
29 return new \ArrayIterator([['id' => '']]);
33 * Allows class to decide how it will react when it is treated like a string.
35 public function __toString() {
42 public function getIds() {
43 $ids['id']['type'] = 'string';
50 public function count() {