Loading modules/entity_share_eca/entity_share_eca.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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 modules/entity_share_eca/src/EventSubscriber/EcaEntityShare.php +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading modules/entity_share_eca/src/Plugin/ECA/Event/EntityShareClientEvent.php +2 −5 Original line number Diff line number Diff line Loading @@ -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', Loading Loading
modules/entity_share_eca/entity_share_eca.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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
modules/entity_share_eca/src/EventSubscriber/EcaEntityShare.php +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading
modules/entity_share_eca/src/Plugin/ECA/Event/EntityShareClientEvent.php +2 −5 Original line number Diff line number Diff line Loading @@ -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', Loading