Types
Discover the content types generated for your slots and components.
The CLI generates a typing stub with four interfaces in the Croct\Content namespace, whose types you import with @phpstan-import-type and @psalm-import-type to annotate your code with the exact shape of each slot and component.
Looking for something specific?
Use the search bar at the top of the page or press / to quickly search through the documentation.
Use the summary below to quickly jump to a specific topic:
| Page | Description |
|---|---|
| Slots | Learn how to reference the content type of a slot. |
| Components | Learn how to reference the content type of a component. |
| MappedSlots | Learn how to reference slot IDs and the slot content map. |
| MappedComponents | Learn how to reference component IDs and the component content map. |