• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Property/PropertyCollection.php
  • Класс: BitrixCatalogv2PropertyPropertyCollection
  • Вызов: PropertyCollection::findByCode
public function findByCode(string $code): ?Property
{
	/** @var BitrixCatalogv2PropertyProperty $item */
	foreach ($this->getIterator() as $item)
	{
		if ($item->getCode() === $code)
		{
			return $item;
		}
	}

	return null;
}