interface MultipleProviderAnnotationInterface implements AnnotationInterface (View source)

Defines a common interface for classed annotations with multiple providers.

This is a temporary solution to the fact that migration source plugins have more than one provider. This functionality will be moved to core in https://www.drupal.org/node/2786355.

Methods

get()

Gets the value of an annotation.

string
getProvider()

Gets the name of the provider of the annotated class.

setProvider(string $provider)

Sets the name of the provider of the annotated class.

string
getId()

Gets the unique ID for this annotated class.

string
getClass()

Gets the class of the annotated class.

setClass(string $class)

Sets the class of the annotated class.

string[]
getProviders()

Gets the provider names of the annotated class.

setProviders(array $providers)

Sets the provider names of the annotated class.

Details

get()

Gets the value of an annotation.

string getProvider()

Gets the name of the provider of the annotated class.

Return Value

string

setProvider(string $provider)

Sets the name of the provider of the annotated class.

Parameters

string $provider

The provider of the annotated class.

string getId()

Gets the unique ID for this annotated class.

Return Value

string

string getClass()

Gets the class of the annotated class.

Return Value

string

setClass(string $class)

Sets the class of the annotated class.

Parameters

string $class

The class of the annotated class.

string[] getProviders()

Gets the provider names of the annotated class.

Return Value

string[]

The providers of the annotation.

setProviders(array $providers)

Sets the provider names of the annotated class.

Parameters

array $providers

The providers of the annotation.