Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContentLifecycle

Class representing the lifecycle status of a Content Item with helper functions.

Hierarchy

  • ContentLifecycle

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

expiryTime

expiryTime: string

Date the content should expire in ISO 8601 format. The content will not become unpublished at this time but this value may be used by applications to choose not to show this content.

Methods

isExpired

  • isExpired(currentTime?: Date): boolean
  • Returns a boolean to indicate if the content should no longer be displayed by your application.

    Parameters

    • Optional currentTime: Date

      Optional date to override the current time.

    Returns boolean

toJSON

  • toJSON(): any

Generated using TypeDoc