Move preprocess_file_link() to localgov_core from localgov_base
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3568271. -->
Reported by: [markconroy](https://www.drupal.org/user/336910)
Related to !4
>>>
<p>If we move the hook_preprocess_file_link code to LocalGov Core from LocalGov Base, then any document media items that we have will display the same in the backend and the frontend.</p>
<p>At the moment, in our editor screens we will see for example my-file.pdf (PDF, 2MB) but on the frontend we will see My File (PDF, 2MB).</p>
<p>Moving this will mean we have a consistent experience for all whether using LocalGov Base or not and whether on the frontend or editing interface.</p>
<p><a href="https://github.com/localgovdrupal/localgov_base/issues/850">https://github.com/localgovdrupal/localgov_base/issues/850</a></p>
issue