Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296300

Fix documentation on hook_user_format_name_alter()

$
0
0

Problem/Motivation

The documentation has a number of problems:

* It references functions that are deprecated
* The $account argument should be type hinted as AccountInterface
* It should document that $name can be a string or a SafeStringInterface and that implementations are allowed to change it to either. Also, should mention that it will be autoescaped if it is a string, if it has trusted HTML content, a SafeString object needs to be used.
* There is a newline between param tags. They should be grouped together.

See also getDisplayName() for references.

Proposed resolution

Improve it.

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 296300


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>