The Fiona 7 Release Collector

The Fiona 7 release_collector makes it possible to specify custom release patterns for CMS objects. So, for example, if releasing a page should cause some other page to be released as well (e.g. one that isn't referenced), then this functionality can be used to achieve the desired behavior.

The release_collector accepts anything responding to the call method and expects one parameter: obj_id. Thus, it is possible to use a lambda, like so:

Alternatively, a class-based implementation may be provided.

It is expected that the release collector returns an array of hashes in the following format:

It is possible to define multiple groups and multiple objects in each group.

It is recommended that custom implementations inherit from or delegate to Fiona7::ReleaseCollector, which is the default implementation.