resolveSlotName
Overview
Resolve the best-matching outer slot name based on inner suffix priority.
Signature
resolveSlotName(innerNamesInOrder, prefixType, fieldName, slots)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| innerNamesInOrder | string[] | yes | The inner names in order of precedence. |
| prefixType | string | yes | The prefix type (e.g., 'field', 'widget'). |
| fieldName | string | yes | The field name (e.g., 'foo' or 'foo__bar'). |
| slots | object | yes | The slots object. |
Returns
string
Source
client/lib/utils/rendererSupport.js:63