You are here

public function SetOrderStatusAction::execute in Ubercart 8.4

Executes the plugin.

Overrides ExecutableInterface::execute

File

uc_order/src/Plugin/Action/SetOrderStatusAction.php, line 68

Class

SetOrderStatusAction
Sets the status of an order.

Namespace

Drupal\uc_order\Plugin\Action

Code

public function execute($order = NULL) {
  $order
    ->setStatusId($this->configuration['status'])
    ->save();
  if ($this->configuration['notify']) {

    /* rules_invoke_event('uc_order_status_email_update', $order); */
  }
}