Skip to content

Class ProductEventSource

Extends EventSource

Properties

productType

public ProductType $productType

Methods

elementType

Returns the element type this source is for.

public static elementType(): class-string<ElementInterface>
return class-string<ElementInterface>

sources

Returns sources that should be registered for this type.

public static sources(): array<string,array>
return array<string,array> keyed by source key, values are config arrays

displayName

public displayName(): string
return string

criteria

public criteria(): array
return array

getCpUrl

public getCpUrl(): string
return string

getActionUrl

public getActionUrl(): string
return string

canView

public canView(User $user): bool
$user User
return bool

canViewPeers

public canViewPeers(User $user): bool
$user User
return bool

canCreate

public canCreate(User $user): bool
$user User
return bool

canDelete

public canDelete(User $user): bool
$user User
return bool