Skip to content

Abstract Class EventSource

Extends Model

Properties

dateFieldHandle

public string $dateFieldHandle

color

public string $color

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

criteria

public criteria(): array
return array

displayName

public displayName(): string
return string

pluralDisplayName

public pluralDisplayName(): string
return string

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