cities.forEach(element => {
let newElement = JSON.parse(JSON.stringify(element))
newElement = prb(newElement.city, searchSring.toLowerCase())
if ((newElement.city).length>0){
arr.push(newElement)
}
});
$item->save();
if ($props) {
$propertyCollection = $item->getPropertyCollection();
$propertyCollection->setProperty($props);
$propertyCollection->save();
$item->setPropertyCollection($propertyCollection);
$arDebug['propertyCollection'] = $item->getPropertyCollection()->getPropertyValues();
}
\Bitrix\Main\Loader::registerAutoLoadClasses(null, [
'Bitrix\View\SitemapTable' => '/путь/к/файлу/класса.php'
]);