The interface

The hybrid is a special kind of component. It’s interface inherits from the interfaces of Content element and Frontend module both. Components implementing the interface can be used as frontend modules and content elements at the same time.

Extending AbstractHybrid

Contao also knows the concept of hybrids but in Contao hybrids are a bit limited. The assume that a foreign table is used for the actual content. It’s used for frontend forms in Contao, for instance.

The AbstractHybrid does not autoload any foreign dataset for you. instead it combines the behaviour of the abstract content element and the abstract module described the the documentation. Each customization point is available here as well.