Function Hook_translation_bing_translator->has_translation
Definitions
sources/hooks/systems/translation/bing_translator.php
- Whether this translation hook is available.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $from | ?LANGUAGE_NAME | No | No | required parameter | N/A | N/A | Source language (null: do not consider) |
| $to | ?LANGUAGE_NAME | No | No | required parameter | N/A | N/A | Destination language (null: do not consider) |
| &$errormsg | ?string | Yes | No | required parameter | N/A | N/A | Error message (returned by reference) (null: not set yet) |
Returns
- Whether it is
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Whether this translation hook is available.
*
* @param ?LANGUAGE_NAME $from Source language (null: do not consider)
* @param ?LANGUAGE_NAME $to Destination language (null: do not consider)
* @param ?string $errormsg Error message (returned by reference) (null: not set yet)
* @return boolean Whether it is
*/
public function has_translation(?string $from, ?string $to, ?string &$errormsg) : bool
* Whether this translation hook is available.
*
* @param ?LANGUAGE_NAME $from Source language (null: do not consider)
* @param ?LANGUAGE_NAME $to Destination language (null: do not consider)
* @param ?string $errormsg Error message (returned by reference) (null: not set yet)
* @return boolean Whether it is
*/
public function has_translation(?string $from, ?string $to, ?string &$errormsg) : bool

