MakeComponentVariableAliases
array MakeComponentVariableAliases( array arDefaultVariableAliases , array arCustomVariableAliases );
The method receives the default variable aliases and variable aliases, passed in the input component parameters. It also replaces those default variable aliases that were re-defined in the input component parameters. Static method.
Parameters
Parameter | Description |
---|---|
arDefaultVariableAliases | Array of default variable aliases. |
arCustomUrlTemplates | Array of variable aliases, passed in the component input parameters. |
Returned value
Array of variable aliases.
Example
// if variable aliases look as follows $arDefaultVariableAliases404 = array(); // and the input parameters pass the array $arParams["VARIABLE_ALIASES"] = array( "element" => array( "IBLOCK_ID" => "BID", "SECTION_ID" => "SID", ) ); // then after calling the method $arVariableAliases = CComponentEngine::MakeComponentVariableAliases($arDefaultVariableAliases404, $arParams["VARIABLE_ALIASES"]); // array $arVariableAliases will look as follows $arVariableAliases = array( "element" => array( "IBLOCK_ID" => "BID", "SECTION_ID" => "SID", ) )
See Also
© «Bitrix24», 2001-2024