- Remove deprecated
enabledForSite()
element query parameter
-
Added event object
StatusChangeEvent
with access to element viagetElement()
and check methods:changedTo(string $nameOfStatus)
changedToPublished()
changedToUnpublished()
-
Added Craft CLI command
element-status-events/scheduled
to take scheduled elements into account.
- No need to bootstrap or register the extension.
- Extension implements
BootstrapInterface
. - Event
ElementStatusEvents::EVENT_STATUS_CHANGED
.
- Converted from module to extension.
- Fixed missing variable.
- Removed the
ElementStatusService::EVENT_ELEMENT_STATUSES_CHANGED
event as it cannot be guaranteed that it will be triggered under every circumstance.
- Changed the module to use a service so that it can be loaded from any other module or plugin without having to be bootstrapped.
- Initial release.