getParentSection
integer|null public static \Bitrix\Catalog\Product\Viewed::getParentSection( integer $sectionId, integer $depth );
Method returns parent section ID with required nesting level. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$sectionId | Order ID. | |
$depth | Nesting level. |
Exception
- \Bitrix\Main\ArgumentException
Example
© «Bitrix24», 2001-2024
Up