public function Payment::setState in Commerce Core 8.2
Sets the payment state.
Parameters
string $state_id: The new state ID.
Return value
$this
Overrides PaymentInterface::setState
File
- modules/
payment/ src/ Entity/ Payment.php, line 252
Class
- Payment
- Defines the payment entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function setState($state_id) {
$this
->set('state', $state_id);
return $this;
}