Function __global->get_translation_credit
Definitions
sources/translation.php
- Get HTML to provide credit to the translation backend, as appropriate.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $from | ?LANGUAGE_NAME | No | No | Null | N/A | N/A | Source language (null: do not consider) |
| $to | ?LANGUAGE_NAME | No | No | Null | N/A | N/A | Destination language (null: do not consider) |
| $hook | ?string | No | No | Null | N/A | N/A | Specific hook to use (null: first that'll do it) |
Returns
- Credit HTML
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get HTML to provide credit to the translation backend, as appropriate.
*
* @param ?LANGUAGE_NAME $from Source language (null: do not consider)
* @param ?LANGUAGE_NAME $to Destination language (null: do not consider)
* @param ?string $hook Specific hook to use (null: first that'll do it)
* @return string Credit HTML
*/
function get_translation_credit(?string $from = null, ?string $to = null, ?string $hook = null) : string
* Get HTML to provide credit to the translation backend, as appropriate.
*
* @param ?LANGUAGE_NAME $from Source language (null: do not consider)
* @param ?LANGUAGE_NAME $to Destination language (null: do not consider)
* @param ?string $hook Specific hook to use (null: first that'll do it)
* @return string Credit HTML
*/
function get_translation_credit(?string $from = null, ?string $to = null, ?string $hook = null) : string
