Browse Source

Revert "Check if action is appropriate for entity before executing"

This reverts commit 87f475d81c.
pull/931/head
Lucas van Schaik 2 years ago
parent
commit
d041ec3bf5
  1. 3
      src/PresetReaction/PresetReaction.php

3
src/PresetReaction/PresetReaction.php

@ -56,12 +56,9 @@ class PresetReaction extends ContextReactionPluginBase implements ContainerFacto
$action_ids = $config['actions'];
foreach ($action_ids as $action_id) {
$action = $this->actionStorage->load($action_id);
// Make sure that the action is appropriate for the entity.
if ($entity->getEntityTypeId() === $action->getType()) {
$action->execute([$entity]);
}
}
}
/**
* {@inheritdoc}

Loading…
Cancel
Save