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.
25 class EmptySource extends SourcePluginBase {
30 public function fields() {
39 public function initializeIterator() {
40 return new \ArrayIterator([['id' => '']]);
44 * Allows class to decide how it will react when it is treated like a string.
46 public function __toString() {
53 public function getIds() {
54 $ids['id']['type'] = 'string';
61 public function count($refresh = FALSE) {