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

deliverResponse(Page $page, string $css)

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

Parameters

Compiler $compiler
StyleValueListFactory $styleValueListFactory
NormalizedVariableCollectionFactory $variableCollectionFactory

protected Response deliverResponse(Page $page, string $css)

No description

Parameters

Page $page
string $css

Return Value

Response

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.

Parameters

Customizer $customizer
Page $page
PresetInterface $preset

Return Value

Response

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.

Parameters

Customizer $customizer
Page $page
PresetInterface $preset
array $requestData

Return Value

Response