function MigrateSourceWithAnnotations::__toString

Same name and namespace in other branches
  1. 11.x core/modules/migrate/tests/modules/migrate_source_annotation_bc_test/src/Plugin/migrate/source/MigrateSourceWithAnnotations.php \Drupal\migrate_source_annotation_bc_test\Plugin\migrate\source\MigrateSourceWithAnnotations::__toString()

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

Overrides MigrateSourceInterface::__toString

File

core/modules/migrate/tests/modules/migrate_source_annotation_bc_test/src/Plugin/migrate/source/MigrateSourceWithAnnotations.php, line 34

Class

MigrateSourceWithAnnotations
A migration source plugin with annotations and a single provider.

Namespace

Drupal\migrate_source_annotation_bc_test\Plugin\migrate\source

Code

public function __toString() {
  return 'Annotated';
}

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