I would like to display a "Please log in" link to anonymous users instead of the normal output of
file_default. (I have
download implemented to
return AccessResult::allowedIf($account->isAuthenticated()); so security wise this is OK.)
I couldn't find a
hook_field_formatter_alter, or similar; which hook can I use to make this change? Or if not a hook, how?