3 namespace Drupal\migrate\Plugin\migrate\source;
6 * Source returning a row based on the constants provided.
18 * This will return a single row containing 'entity_type' and 'field_name'
19 * elements, with values of 'user' and 'image', respectively.
23 * source_module = "migrate"
26 class EmptySource extends SourcePluginBase {
31 public function fields() {
40 public function initializeIterator() {
41 return new \ArrayIterator([['id' => '']]);
45 * Allows class to decide how it will react when it is treated like a string.
47 public function __toString() {
54 public function getIds() {
55 $ids['id']['type'] = 'string';
62 public function count($refresh = FALSE) {