comparison core/modules/migrate/src/Annotation/MultipleProviderAnnotationInterface.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 <?php
2
3 namespace Drupal\migrate\Annotation;
4
5 use Drupal\Component\Annotation\AnnotationInterface;
6
7 /**
8 * Defines a common interface for classed annotations with multiple providers.
9 *
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.
13 */
14 interface MultipleProviderAnnotationInterface extends AnnotationInterface {
15
16 /**
17 * Gets the name of the provider of the annotated class.
18 *
19 * @return string
20 * The provider of the annotation. If there are multiple providers the first
21 * is returned.
22 */
23 public function getProvider();
24
25 /**
26 * Gets the provider names of the annotated class.
27 *
28 * @return string[]
29 * The providers of the annotation.
30 */
31 public function getProviders();
32
33 /**
34 * Sets the provider names of the annotated class.
35 *
36 * @param string[] $providers
37 * The providers of the annotation.
38 */
39 public function setProviders(array $providers);
40
41 }