Skip to content

Commit

Permalink
Backwards compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Jun 5, 2024
1 parent b1c03b2 commit 140c3cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions islandora.module
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,16 @@ function islandora_preprocess_views_view_table(&$variables) {
}
}
}

/**
* Implements hook_field_info_alter().
*
* @todo Remove once minimum version supported is at least 10.2.0.
*/
function islandora_field_info_alter(array &$info): void {
// Allow module to work with versions of older versions of Drupal.
if (\version_compare(\Drupal::VERSION, '10.1.9999', '<')) {
$info['reference']['category'] = new TranslatableMarkup("Reference");
}
}

0 comments on commit 140c3cb

Please sign in to comment.