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.

Croct's mascot winking
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:

PageDescription
SlotsLearn how to reference the content type of a slot.
ComponentsLearn how to reference the content type of a component.
MappedSlotsLearn how to reference slot IDs and the slot content map.
MappedComponentsLearn how to reference component IDs and the component content map.