class SynonymsProvider in Synonyms 8
Annotation for synonyms provider plugin instance.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\synonyms\Annotation\SynonymsProvider
Expanded class hierarchy of SynonymsProvider
1 file declares its use of SynonymsProvider
3 classes are annotated with SynonymsProvider
- BaseField in src/
Plugin/ Synonyms/ Provider/ BaseField.php - Provide synonyms from base fields.
- EntityReferenceField in src/
Plugin/ Synonyms/ Provider/ EntityReferenceField.php - Provide synonyms from entity reference field type.
- Field in src/
Plugin/ Synonyms/ Provider/ Field.php - Provide synonyms from attached simple fields.
File
- src/
Annotation/ SynonymsProvider.php, line 12
Namespace
Drupal\synonyms\AnnotationView source
class SynonymsProvider extends Plugin {
/**
* Machine readable name of this plugin.
*
* @var string
*/
public $id;
/**
* Human readable name of this plugin.
*
* @var string
*/
public $label;
/**
* Synonyms behavior service ID into which this plugin provides synonyms.
*
* Synonyms behaviors are the services with the tag 'synonyms_behavior'.
*
* @var string
*/
public $synonyms_behavior_service;
/**
* Entity type which is controlled by ths plugin.
*
* Entity type into which this plugin provides synonyms.
*
* @var string
*/
public $controlled_entity_type;
/**
* Bundle which is controlled by this plugin.
*
* Bundle into which this plugin provides synonyms. If the entity type does
* not support bundles, just put here the entity type.
*
* @var string
*/
public $controlled_bundle;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
SynonymsProvider:: |
public | property | Bundle which is controlled by this plugin. | |
SynonymsProvider:: |
public | property | Entity type which is controlled by ths plugin. | |
SynonymsProvider:: |
public | property | Machine readable name of this plugin. | |
SynonymsProvider:: |
public | property | Human readable name of this plugin. | |
SynonymsProvider:: |
public | property | Synonyms behavior service ID into which this plugin provides synonyms. |