You are here

public function YamlFormSubmission::getRemoteAddr in YAML Form 8

Gets the remote IP address of the submission.

Return value

string The remote IP address of the submission

Overrides YamlFormSubmissionInterface::getRemoteAddr

File

src/Entity/YamlFormSubmission.php, line 293

Class

YamlFormSubmission
Defines the YamlFormSubmission entity.

Namespace

Drupal\yamlform\Entity

Code

public function getRemoteAddr() {
  return $this
    ->get('remote_addr')->value ?: $this
    ->t('(unknown)');
}