class FieldComparator in Conflict 8.2
Defines a FieldComparator annotation object.
Plugin Namespace: Plugin\Conflict\FieldComparator
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\conflict\Annotation\FieldComparator
Expanded class hierarchy of FieldComparator
1 file declares its use of FieldComparator
2 classes are annotated with FieldComparator
- FieldComparatorDefault in src/
Plugin/ Conflict/ FieldComparator/ FieldComparatorDefault.php - Default field comparator plugin implementation covering all fields.
- FieldComparatorParagraphReference in modules/
conflict_paragraphs/ src/ Plugin/ Conflict/ FieldComparator/ FieldComparatorParagraphReference.php - Field comparator plugin implementation for paragraph reference fields.
File
- src/
Annotation/ FieldComparator.php, line 14
Namespace
Drupal\conflict\AnnotationView source
class FieldComparator extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The entity type ID this plugin applies to.
*
* @var string
*/
public $entity_type_id;
/**
* The bundle of the entity type this plugin applies to.
*
* @var string
*/
public $bundle;
/**
* The field type this plugin applies to.
*
* @var string
*/
public $field_type;
/**
* The field name of the entity type this plugin applies to.
*
* @var string
*/
public $field_name;
/**
* The weight of the plugin.
*
* @var int
*/
public $weight;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldComparator:: |
public | property | The bundle of the entity type this plugin applies to. | |
FieldComparator:: |
public | property | The entity type ID this plugin applies to. | |
FieldComparator:: |
public | property | The field name of the entity type this plugin applies to. | |
FieldComparator:: |
public | property | The field type this plugin applies to. | |
FieldComparator:: |
public | property | The plugin ID. | |
FieldComparator:: |
public | property | The weight of the plugin. | |
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 |