PreviewHandlerInterface
interface PreviewHandlerInterface (View source)
Methods
getCustomPreviewResponse(Customizer $customizer, Page $page, PresetInterface $preset, array $requestData)
Method used by the customizer when choosing one or more custom values from the customizer on the left panel, and allowing it to submit the preview on the righthand content side.
getPresetPreviewResponse(Customizer $customizer, Page $page, PresetInterface $preset)
Method used by the customizer when customizing a theme and clicking on a preset but not modifying any of the values.
Details
Response
getCustomPreviewResponse(Customizer $customizer, Page $page, PresetInterface $preset, array $requestData)
Method used by the customizer when choosing one or more custom values from the customizer on the left panel, and allowing it to submit the preview on the righthand content side.
Response
getPresetPreviewResponse(Customizer $customizer, Page $page, PresetInterface $preset)
Method used by the customizer when customizing a theme and clicking on a preset but not modifying any of the values.