You are here

public function WebformSubmission::setRemoteAddr in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/WebformSubmission.php \Drupal\webform\Entity\WebformSubmission::setRemoteAddr()

Sets remote IP address of the submission.

Parameters

string $ip_address: The remote IP address of the submission.

Return value

$this

Overrides WebformSubmissionInterface::setRemoteAddr

File

src/Entity/WebformSubmission.php, line 367

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

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