Documentation

createInstance

\Bitrix\Iblock\Template\Functions\FunctionBase public static
\Bitrix\Iblock\Template\Functions\Fabric::createInstance(
 string $functionName,
 mixed $data = null
);

Method creates an instance object by its function name. Static method.

Parameters

ParameterDescriptionVersion
$functionNameFunction name in lower case.
$dataAdditional data for function instance.

Example



© «Bitrix24», 2001-2024
Up