Commit deab032a authored by Jürgen Haas's avatar Jürgen Haas Committed by Florent Torregrosa
Browse files

Issue #3274756 by jurgenhaas, rkoller, Grimreaper: Changed method name for ECA beta-8 and beyond

parent 17df8c66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,5 +4,5 @@ description: 'Entity share events, conditions and actions.'
core_version_requirement: ^9
package: 'ECA'
dependencies:
  - eca:eca
  - 'eca:eca (>= 1.0.0-beta8)'
  - entity_share:entity_share_client
+2 −2
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@ class EcaEntityShare extends EcaBase {
   */
  public static function getSubscribedEvents(): array {
    $events = [];
    foreach (EntityShareClientEvent::actions() as $action) {
      $events[$action['event_name']][] = ['onEvent'];
    foreach (EntityShareClientEvent::definitions() as $definition) {
      $events[$definition['event_name']][] = ['onEvent'];
    }
    return $events;
  }
+2 −5
Original line number Diff line number Diff line
@@ -18,12 +18,9 @@ use Drupal\entity_share_client\Event\RelationshipFieldValueEvent;
class EntityShareClientEvent extends EventBase {

  /**
   * Return the actions of the plugin.
   *
   * @return array[]
   *   The actions of the plugin.
   * {@inheritdoc}
   */
  public static function actions(): array {
  public static function definitions(): array {
    return [
      'entity_share_eca_rel_field_value' => [
        'label' => 'Entity share: Relationship Field Value',