Browse Source

Revert "Comment too long"

This reverts commit aba5052308.
MNPALS-2.x
Lucas van Schaik 2 years ago committed by Rosie Le Faive
parent
commit
b82accf763
  1. 3
      src/PresetReaction/PresetReaction.php

3
src/PresetReaction/PresetReaction.php

@ -56,8 +56,7 @@ class PresetReaction extends ContextReactionPluginBase implements ContainerFacto
$action_ids = $config['actions']; $action_ids = $config['actions'];
foreach ($action_ids as $action_id) { foreach ($action_ids as $action_id) {
$action = $this->actionStorage->load($action_id); $action = $this->actionStorage->load($action_id);
// Make sure that the action is appropriate: // Make sure that the action is appropriate: either system or with same entity type.
// either system action or with same type as the entity type.
if ($action->getType() === 'system' || $entity->getEntityTypeId() === $action->getType()) { if ($action->getType() === 'system' || $entity->getEntityTypeId() === $action->getType()) {
$action->execute([$entity]); $action->execute([$entity]);
} }

Loading…
Cancel
Save