• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitypropertyvaluecollection.php
  • Класс: BitrixSaleEntityPropertyValueCollection
  • Вызов: EntityPropertyValueCollection::getAttribute
public function getAttribute($name)
{
	/** @var EntityPropertyValue $item */
	foreach ($this->collection as $item)
	{
		$property = $item->getPropertyObject();
		if ($property->getField($name) === 'Y')
		{
			return $item;
		}
	}

	return null;
}