You are here

public function StubSourcePlugin::__toString in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\StubSourcePlugin::__toString()
  2. 9 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\StubSourcePlugin::__toString()

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

Overrides MigrateSourceInterface::__toString

File

core/modules/migrate/tests/src/Unit/MigrateSourceTest.php, line 482
Contains \Drupal\Tests\migrate\Unit\MigrateSourceTest.

Class

StubSourcePlugin
Stubbed source plugin for testing base class implementations.

Namespace

Drupal\Tests\migrate\Unit

Code

public function __toString() {
  return '';
}