Loading src/Plugin/RulesAction/TransactionPerform.php +2 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ use Drupal\commerce_price\Calculator; * id = "commerce_funds_perform_transaction", * label = @Translation("Perform transaction"), * category = @Translation("Transaction"), * context = { * context_definitions = { * "transaction" = @ContextDefinition("entity:commerce_funds_transaction", * label = @Translation("Transaction"), * description = @Translation("Specifies the transaction that should be performed.") Loading @@ -29,7 +29,7 @@ class TransactionPerform extends RulesActionBase { public function refineContextDefinitions(array $selected_data) { if ($selected_data && isset($selected_data['transaction'])) { $type = $selected_data['transaction']->getDataType(); $this->getPluginDefinition()['context']['transaction']->setDataType($type); $this->getPluginDefinition()['context_definitions']['transaction']->setDataType($type); } } Loading Loading
src/Plugin/RulesAction/TransactionPerform.php +2 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ use Drupal\commerce_price\Calculator; * id = "commerce_funds_perform_transaction", * label = @Translation("Perform transaction"), * category = @Translation("Transaction"), * context = { * context_definitions = { * "transaction" = @ContextDefinition("entity:commerce_funds_transaction", * label = @Translation("Transaction"), * description = @Translation("Specifies the transaction that should be performed.") Loading @@ -29,7 +29,7 @@ class TransactionPerform extends RulesActionBase { public function refineContextDefinitions(array $selected_data) { if ($selected_data && isset($selected_data['transaction'])) { $type = $selected_data['transaction']->getDataType(); $this->getPluginDefinition()['context']['transaction']->setDataType($type); $this->getPluginDefinition()['context_definitions']['transaction']->setDataType($type); } } Loading