Craft Themes (4.x)

ProductTypeLayoutBehavior extends Behavior
in package

This behaviour is attached to all product types. Behaviors on product types can't be added before commerce 3.4.12.

Tags
since
3.1.0
see
https://github.com/craftcms/commerce/issues/2715

Table of Contents

$owner  : ProductType
getEditBlocksUrl()  : string
Get the url to edit blocks for a theme.
getEditDisplaysUrl()  : string|null
Get the url to edit displays for a theme and a view mode.
getEditVariantDisplaysUrl()  : string|null
Get the url to edit displays for a theme and a view mode.
getLayout()  : LayoutInterface|null
Layout getter
getVariantLayout()  : LayoutInterface|null
Variant layout getter

Properties

Methods

getEditBlocksUrl()

Get the url to edit blocks for a theme.

public getEditBlocksUrl([ThemeInterface|string|null $theme = null ]) : string

If the theme is null the current theme will be used.

Parameters
$theme : ThemeInterface|string|null = null
Return values
string

getEditDisplaysUrl()

Get the url to edit displays for a theme and a view mode.

public getEditDisplaysUrl([ThemeInterface|string|null $theme = null ][, ViewModeInterface|string|null $viewMode = null ]) : string|null

If the theme is null the current theme will be used.

Parameters
$theme : ThemeInterface|string|null = null
$viewMode : ViewModeInterface|string|null = null
Return values
string|null

getEditVariantDisplaysUrl()

Get the url to edit displays for a theme and a view mode.

public getEditVariantDisplaysUrl([ThemeInterface|string|null $theme = null ][, ViewModeInterface|string|null $viewMode = null ]) : string|null

If the theme is null the current theme will be used.

Parameters
$theme : ThemeInterface|string|null = null
$viewMode : ViewModeInterface|string|null = null
Return values
string|null

Search results