• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/Integration/UI/EntityEditor/Property/PropertyFeatureEditorFields.php
  • Класс: BitrixIblockIntegrationUIEntityEditorPropertyPropertyFeatureEditorFields
  • Вызов: PropertyFeatureEditorFields::getEntityFields
public function getEntityFields(): array
{
	if (isset($this->fields))
	{
		return $this->fields;
	}

	if (!PropertyFeature::isEnabledFeatures())
	{
		return [];
	}

	$this->fields = [];

	$features = PropertyFeature::getPropertyFeatureList($this->property);
	foreach ($features as $feature)
	{
		$index = PropertyFeature::getIndex($feature);

		$this->fields[] = [
			'name' => "FEATURES[{$index}]",
			'title' => $feature['FEATURE_NAME'],
			'type' => 'boolean',
		];
	}

	return $this->fields;
}