ExpirableElementInterface

Type
Interface
Namespace
craft\base
Implemented by
craft\elements\Entry
Since
4.3.0

ExpirableElementInterface defines the common interface to be implemented by element classes that can expire.

View source (opens new window)

# Public Methods

Method Description
getExpiryDate() Returns the element’s expiration date/time.

# getExpiryDate()

Returns the element’s expiration date/time.

View source (opens new window)

Returns

DateTime (opens new window), null (opens new window)