You are here

public function Order::getIpAddress in Commerce Core 8.2

Gets the order IP address.

Return value

string The IP address.

Overrides OrderInterface::getIpAddress

1 call to Order::getIpAddress()
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 213

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function getIpAddress() {
  return $this
    ->get('ip_address')->value;
}