• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Property/Property.php
  • Класс: BitrixCatalogv2PropertyProperty
  • Вызов: Property::getDefaultValue
public function getDefaultValue()
{
	$defaultValue = $this->getSetting('DEFAULT_VALUE');

	if (
		!empty($defaultValue)
		&& $this->getPropertyType() === 'S'
		&& $this->getUserType() === 'HTML'
	)
	{
		$defaultValue = CheckSerializedData($defaultValue)
			? unserialize($defaultValue, ['allowed_classes' => false])
			: null;
	}

	return $defaultValue;
}