You are here

public function ExceptionThrowingTestSource::__toString in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8.4 tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php \Drupal\migrate_tools_test\Plugin\migrate\source\ExceptionThrowingTestSource::__toString()

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

Overrides MigrateSourceInterface::__toString

File

tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php, line 27

Class

ExceptionThrowingTestSource
A simple migrate source for testing exception handling.

Namespace

Drupal\migrate_tools_test\Plugin\migrate\source

Code

public function __toString() {
  return '';
}