3 namespace Drupal\diff\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines a FieldDiffBuilder annotation object.
10 * Diff builders handle how fields are compared by the diff module.
12 * Additional annotation keys for diff builders can be defined in
13 * hook_field_diff_builder_info_alter().
17 * @see \Drupal\diff\FieldDiffBuilderPluginManager
18 * @see \Drupal\diff\FieldDiffBuilderInterface
20 class FieldDiffBuilder extends Plugin {
30 * The human-readable name of the diff builder.
32 * @var \Drupal\Core\Annotation\Translation
34 * @ingroup plugin_translatable
39 * An array of field types the diff builder supports.
43 public $field_types = [];
46 * The weight of the plugin that defines its importance when applied.