You are here

private function IpAddress::isIpV6 in IP address fields 8

Same name and namespace in other branches
  1. 2.0.x src/IpAddress.php \Drupal\field_ipaddress\IpAddress::isIpV6()

Checks if the given IP is valid IPv6.

1 call to IpAddress::isIpV6()
IpAddress::parse in src/IpAddress.php
Find if the value given is an IP, IP range, or other.

File

src/IpAddress.php, line 104

Class

IpAddress
IpTools class.

Namespace

Drupal\field_ipaddress

Code

private function isIpV6($ip) {
  return filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
}