---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [project-index](../index.md) / hookChains

# Function: hookChains()

> **hookChains**(`index`): [`HookChain`](../interfaces/HookChain.md)[]

Defined in: [packages/b2c-tooling-sdk/src/project-index/insights.ts:133](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/project-index/insights.ts#L133)

Hook registrations grouped by extension point, ordered by the index's
cartridge path. For system extension points, a registration that can return
a value is an issue when it would skip later registrations, or for any
OCAPI/SCAPI hook (where it also skips the system implementation, such as
basket calculation). When the last registration of another system hook
returns a value, it is noted as replacing the system implementation.

## Parameters

### index

[`ProjectIndex`](../interfaces/ProjectIndex.md)

## Returns

[`HookChain`](../interfaces/HookChain.md)[]
