3 namespace Drupal\migrate\Annotation;
5 use Drupal\Component\Annotation\AnnotationInterface;
8 * Defines a common interface for classed annotations with multiple providers.
10 * @todo This is a temporary solution to the fact that migration source plugins
11 * have more than one provider. This functionality will be moved to core in
12 * https://www.drupal.org/node/2786355.
14 interface MultipleProviderAnnotationInterface extends AnnotationInterface {
17 * Gets the name of the provider of the annotated class.
20 * The provider of the annotation. If there are multiple providers the first
23 public function getProvider();
26 * Gets the provider names of the annotated class.
29 * The providers of the annotation.
31 public function getProviders();
34 * Sets the provider names of the annotated class.
36 * @param string[] $providers
37 * The providers of the annotation.
39 public function setProviders(array $providers);