Download the PHP package putyourlightson/craft-element-status-events without Composer
On this page you can find all versions of the php package putyourlightson/craft-element-status-events. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download putyourlightson/craft-element-status-events
More information about putyourlightson/craft-element-status-events
Files in putyourlightson/craft-element-status-events
Package craft-element-status-events
Short Description Element status events extension for Craft CMS.
License MIT
Homepage https://github.com/putyourlightson/craft-element-status-events
Informations about the package craft-element-status-events
Element Status Events for Craft CMS 3
The Element Status Events extension provides events that are triggered whenever an element’s status changes. It is intended to be used a helper component for other Craft modules and plugins.
To get an understanding of how the module works, read the Challenge #6 – The Chicken or the Egg solution.
Requirements
This extension requires Craft CMS 3.0.0 or later.
Usage
Install it manually using composer or add it as a dependency to your plugin.
If you work with scheduled Entries (future published or expired), make sure to set up cron that calls:
Events
Whenever an element’s status is changed, ElementStatusEvents::EVENT_STATUS_CHANGED
is fired. The StatusChangeEvent
object provides information about the change.
License
This extension is licensed for free under the MIT License.
Created by PutYourLightsOn in cooperation with Oliver Stark