Function Hook_import_cms_merge->get_lang_string
Definitions
sources/hooks/modules/admin_import/cms_merge.php
- Fetch and clean up a content language string.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $db | object | No | No | required parameter | N/A | N/A | The database connector to import from |
| $id | mixed | No | No | required parameter | N/A | N/A | The content language string ID |
Returns
- The cleaned-up string
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Fetch and clean up a content language string.
*
* @param object $db The database connector to import from
* @param mixed $id The content language string ID
* @return string The cleaned-up string
*/
public function get_lang_string(object $db, $id) : string
* Fetch and clean up a content language string.
*
* @param object $db The database connector to import from
* @param mixed $id The content language string ID
* @return string The cleaned-up string
*/
public function get_lang_string(object $db, $id) : string

