Implement ConditionalApplianceInterface for all ECA event classes

Issue information

From user: jurgenhaas

Related to !22 (merged)

Contribution record

Fork management

Problem/Motivation

In MR !14 (merged) of #3243036: Add support for the cron run event we've introduced this new interface and that should be implemented by all ECA event classes:

  • Drupal\eca_content\Plugin\ECA\Event\ContentEntityEvent
  • Drupal\eca_form\Plugin\ECA\Event\FormEvent
  • Drupal\eca_user\Plugin\ECA\Event\UserEvent

After that, we can remove the applies method from Drupal\eca\PluginEventInterface and call the same method directly from Drupal\eca\Entity\Objects\EcaEvent::applies in line 40 in ConditionalApplianceInterface.

At the same time, let's see if the interface should be extended to also cover more methods that we're otherwise checking for with method_exist or other means.

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