You are here

public function MigrateSource::setProviders in Drupal 8

Same name and namespace in other branches
  1. 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;
}