You are here

function hook_field_diff_builder_info_alter in Diff 8

Alter the information provided in \Drupal\diff\Annotation\FieldDiffBuilder.

Parameters

array $diff_builders: The array of field diff builders plugins, keyed on the machine-readable plugin name.

File

./diff.api.php, line 39
Hooks and documentation related to diff module.

Code

function hook_field_diff_builder_info_alter(array &$diff_builders) {

  // Set a new label for the text_field_diff_builder plugin
  // instead of the one provided in the annotation.
  $diff_builders['text_field_diff_builder']['label'] = t('New label');
}