final class ExtensionLifecycle (View source)

Extension lifecycle.

The lifecycle of an extension (module/theme etc) can go through the following progression:

  1. Starts "experimental".
  2. Stabilizes and goes "stable".
  3. Eventually (maybe), becomes "deprecated" when being phased out.
  4. Finally (maybe), becomes "obsolete" and can't be enabled anymore.

Constants

LIFECYCLE_IDENTIFIER

The string used to identify the lifecycle in an .info.yml file.

LIFECYCLE_LINK_IDENTIFIER

The string used to identify the lifecycle link in an .info.yml file.

EXPERIMENTAL

Extension is experimental. Warnings will be shown if installed.

STABLE

Extension is stable. This is the default value of any extension.

DEPRECATED

Extension is deprecated. Warnings will be shown if still installed.

OBSOLETE

Extension is obsolete and installation will be prevented.

Methods

static bool
isValid(string $lifecycle)

Determines if a given extension lifecycle string is valid.

Details

static bool isValid(string $lifecycle)

Determines if a given extension lifecycle string is valid.

Parameters

string $lifecycle

The lifecycle to validate.

Return Value

bool

TRUE if the lifecycle is valid, otherwise FALSE.