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
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
$owner
public
ProductType
$owner
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 —getLayout()
Layout getter
public
getLayout([string|ThemeInterface|null $theme = null ]) : LayoutInterface|null
Parameters
- $theme : string|ThemeInterface|null = null
-
theme instance or theme handle, or null for the current theme
Return values
LayoutInterface|null —getVariantLayout()
Variant layout getter
public
getVariantLayout([string|ThemeInterface|null $theme = null ]) : LayoutInterface|null
Parameters
- $theme : string|ThemeInterface|null = null
-
theme instance or theme handle, or null for the current theme