function EmptySource::__toString

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::__toString()
  2. 8.9.x core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::__toString()
  3. 10 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::__toString()

Allows class to decide how it will react when it is treated like a string.

Overrides MigrateSourceInterface::__toString

1 method overrides EmptySource::__toString()
MigrateSourceWithAnnotationsMultipleProviders::__toString in core/modules/migrate/tests/modules/migrate_source_annotation_bc_test/src/Plugin/migrate/source/MigrateSourceWithAnnotationsMultipleProviders.php
Allows class to decide how it will react when it is treated like a string.

File

core/modules/migrate/src/Plugin/migrate/source/EmptySource.php, line 49

Class

EmptySource
Source returning a row based on the constants provided.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function __toString() {
    return '';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.