Visibility handling¶
Scheduled visibility comes with several handlers you can use for updating content visibility using different services from Ibexa PHP API:
Content¶
This handler uses hideContent() and revealContent() methods from ContentService. It hides Content by making all the Locations appear hidden but does not persist hidden state on Location object/s.
Location¶
This handler uses hideLocation() and unhideLocation() methods from LocationService. It hides the Location and marks invisible all descendants of Location.
Content and Location¶
This handler uses hideContent() and revealContent() methods from ContentService and hideLocation() and unhideLocation() methods from LocationService. It does combined actions of Content and Location handlers mentioned above.
Section¶
This handler uses SectionService and its method assignSection(). Content that is supposed to become hidden or visible will be assigned to configured sections.
Object state¶
This handler uses ObjectStateService and its method setContentState(). Content that is supposed to be hidden or visible will be assigned to configured object states in object state group.
Note
Both object states must be in the configured object state group.
Custom handler¶
Custom handler can be created. It needs to be registered and tagged with:
tags:
- { name: netgen.ibexa_scheduled_visibility.handler, identifier: custom_identifier }