You are here

public function YamlFormSubmission::setRemoteAddr in YAML Form 8

Sets remote IP address of the submission.

Parameters

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

Return value

$this

Overrides YamlFormSubmissionInterface::setRemoteAddr

File

src/Entity/YamlFormSubmission.php, line 300

Class

YamlFormSubmission
Defines the YamlFormSubmission entity.

Namespace

Drupal\yamlform\Entity

Code

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