fetch( 'switchlanguage', 'url_alias' )
Defined in kernel/private/modules/switchlanguage/function_definition.php; it calls ezpLanguageSwitcherFunctionCollection::fetchUrlAlias() (kernel/private/modules/switchlanguage/ezpLanguageSwitcherFunctionCollection.php).
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
node_id | integer | no | false |
path | string | no | false |
locale | string | yes | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'switchlanguage', 'url_alias', hash( 'locale', 'locale' ) )
{* with every parameter *}
{def $all = fetch( 'switchlanguage', 'url_alias', hash( 'node_id', 1,
'path', 'path',
'locale', 'locale' ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'switchlanguage', 'url_alias', array( 'locale' => 'locale' ) );Related
- All fetch functions of switchlanguage
- The views of the switchlanguage module
- The fetch template operator
Generated by ./console exp:help:examples from kernel/private/modules/switchlanguage/function_definition.php, kernel/private/modules/switchlanguage/ezpLanguageSwitcherFunctionCollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.