StandardPreviewHandler
class StandardPreviewHandler implements PreviewHandlerInterface (View source)
Properties
protected Compiler | $compiler | ||
protected StyleValueListFactory | $styleValueListFactory | ||
protected NormalizedVariableCollectionFactory | $variableCollectionFactory |
Methods
__construct(Compiler $compiler, StyleValueListFactory $styleValueListFactory, NormalizedVariableCollectionFactory $variableCollectionFactory)
No description
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.
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.
Details
__construct(Compiler $compiler, StyleValueListFactory $styleValueListFactory, NormalizedVariableCollectionFactory $variableCollectionFactory)
No description
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.
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.