Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/src/Annotation/MigrateSource.php \Drupal\migrate\Annotation\MigrateSource::setProviders()
  2. 9 core/modules/migrate/src/Annotation/MigrateSource.php \Drupal\migrate\Annotation\MigrateSource::setProviders()

Sets the provider names of the annotated class.

Parameters

string[] $providers: The providers of the annotation.

Overrides MultipleProviderAnnotationInterface::setProviders

File

core/modules/migrate/src/Annotation/MigrateSource.php, line 94

Class

MigrateSource
Defines a migration source plugin annotation object.

Namespace

Drupal\migrate\Annotation

Code

public function setProviders(array $providers) {
  $this->definition['provider'] = $providers;
}