Skip to main content

Contracts Reference

Flare exposes a set of small interfaces that opt a filter element, list type, or helper object into specific behavior.

Most custom filter elements extend AbstractFilterElement and most custom list types extend AbstractListType. Those base classes already implement several contracts with no-op or default behavior, so you only need to override the contracts that matter for your type.

Contracts are grouped into three categories:

1. Filter Element Contracts

2. List Type Contracts

3. General Contracts

  • IsSupportedContract: Hide unsupported services from bundle integrations that check availability.
  • PaletteContract: Return or adjust Contao DCA palette strings during palette building.