You are here

public function Webform::hasRemoteAddr in Webform 8.5

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

Determine if remote IP address is being stored.

Return value

bool TRUE if remote IP address is being stored.

Overrides WebformInterface::hasRemoteAddr

File

src/Entity/Webform.php, line 712

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function hasRemoteAddr() {
  return !$this
    ->isConfidential() && $this
    ->getSetting('form_remote_addr') ? TRUE : FALSE;
}