Implement ConditionalApplianceInterface for all ECA event classes
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3245321. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
Related to !22
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In MR !14 of <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/eca/-/work_items/3243036" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/eca/-/work_items/3243036</a></span> we've introduced this new interface and that should be implemented by all ECA event classes:</p>
<ul>
<li>Drupal\eca_content\Plugin\ECA\Event\ContentEntityEvent</li>
<li>Drupal\eca_form\Plugin\ECA\Event\FormEvent</li>
<li>Drupal\eca_user\Plugin\ECA\Event\UserEvent</li>
</ul>
<p>After that, we can remove the <code>applies</code> method from <code>Drupal\eca\PluginEventInterface</code> and call the same method directly from <code>Drupal\eca\Entity\Objects\EcaEvent::applies</code> in line 40 in ConditionalApplianceInterface.</p>
<p>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 <code>method_exist</code> or other means.</p>
> Related issue: [Issue #3238206](https://www.drupal.org/node/3238206)
issue