You are here

public function Order::setIpAddress in Commerce Core 8.2

Sets the order IP address.

Parameters

string $ip_address: The IP address.

Return value

$this

Overrides OrderInterface::setIpAddress

1 call to Order::setIpAddress()
Order::preSave in modules/order/src/Entity/Order.php
Acts on an entity before the presave hook is invoked.

File

modules/order/src/Entity/Order.php, line 220

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function setIpAddress($ip_address) {
  $this
    ->set('ip_address', $ip_address);
  return $this;
}