Implement ConditionalApplianceInterface for all ECA event classes
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