ExtensionLifecycle
final class ExtensionLifecycle (View source)
Extension lifecycle.
The lifecycle of an extension (module/theme etc) can go through the following progression:
- Starts "experimental".
- Stabilizes and goes "stable".
- Eventually (maybe), becomes "deprecated" when being phased out.
- 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.