Documentation

getElementData

\Bitrix\Landing\Source\DataLoader::getElementData(
   $element
)

Abstract method must be new in the descendant class. Returns data for item which identifier was passed to the method (see the settings \Bitrix\Landing\Source\DataLoader::setConfig)

Parameters

Parameter Type Description Available from version
$element string or integerElement/item ID to be returned.

Returned value

Returns an array, containing a single element (array) with required element fields:

$item = [
    ... // element data
];
return [$item];

Or an empty array (element is not found or outside of filter scope).



© «Bitrix24», 2001-2024
Up