Problem/Motivation
Status is hardcoded.
In case entities has a "published" property which is not 'status' but 'enabled' for example, plugin will not work.
Steps to reproduce
Try on entity which use a publish key other than status.
Proposed resolution
Get the entity key for "published" instead of hardcoded 'status'.
Use the EntityPublishedTrait to now if entity is published and to set publish state.
Issue fork scheduler_field-3465021
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #6
goz commented