You are here

public function RestrictIpServiceInterface::cleanIpAddressInput in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 src/Service/RestrictIpServiceInterface.php \Drupal\restrict_ip\Service\RestrictIpServiceInterface::cleanIpAddressInput()
  2. 3.x src/Service/RestrictIpServiceInterface.php \Drupal\restrict_ip\Service\RestrictIpServiceInterface::cleanIpAddressInput()

* Takes a string containing potential IP addresses on separate lines, * strips them of any code comments, trims them, and turns them into a clean array. * Note that the elements may or may not be IP addresses and if validation is necessary, * the array returned from this function should be validated. * *

Parameters

string $input: * A string containing new-line separated IP addresses. Can contain code comments * * @return array * An array of IP addresses parsed from the $input.

1 method overrides RestrictIpServiceInterface::cleanIpAddressInput()
RestrictIpService::cleanIpAddressInput in src/Service/RestrictIpService.php
*

File

src/Service/RestrictIpServiceInterface.php, line 40

Class

RestrictIpServiceInterface

Namespace

Drupal\restrict_ip\Service

Code

public function cleanIpAddressInput($input);