• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitypropertyvalue.php
  • Класс: BitrixSaleEntityPropertyValue
  • Вызов: EntityPropertyValue::hasPresetForLanding
static function hasPresetForLanding(Entity $entity) : bool
{
	$tpLandingList = static::extractTpLandingIdList($entity);

	if ($tpLandingList)
	{
		$dbRes = InternalsOrderPropsRelationTable::getList([
			'filter' => [
				'@ENTITY_ID' => $tpLandingList,
				'=ENTITY_TYPE' => OrderPropsRelationTable::ENTITY_TYPE_LANDING,
			],
			'limit' => 1
		]);

		return (bool)$dbRes->fetch();
	}

	return false;
}