• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/PropertyFeature/PropertyFeatureCollection.php
  • Класс: BitrixCatalogv2PropertyFeaturePropertyFeatureCollection
  • Вызов: PropertyFeatureCollection::findBySetting
public function findBySetting(string $field, $value): ?PropertyFeature
{
	/** @var PropertyFeature $item */
	foreach ($this->getIterator() as $item)
	{
		if ($item->getSetting($field) === $value)
		{
			return $item;
		}
	}

	return null;
}