Drush commands to disable/enable all ECA models

Issue information

From user: jurgenhaas

Related to !215 (merged)

Contribution record

Fork management

Problem/Motivation

There are situations, e.g. when calling migrate:import, where ECA should not be active. We already have a kill switch, but that can only be turned on in settings, and that's not easily possible when running scripts from the commands line.

Instead, invoking a drush command that disables all existing ECA models, would be much more convenient. Afterwards, enabling them all at once again with a drush command as well, will make things complete.

Proposed resolution

Implement 2 new drush commands utilizing the already existing enable/disable functions implemented in modellers.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information