You are here

public function GetLocationEvent::setLocation in Smart IP 8.3

Same name and namespace in other branches
  1. 8.4 src/GetLocationEvent.php \Drupal\smart_ip\GetLocationEvent::setLocation()
  2. 8.2 src/GetLocationEvent.php \Drupal\smart_ip\GetLocationEvent::setLocation()

Set Smart IP's data location.

Parameters

\Drupal\smart_ip\SmartIpLocationInterface $location: Smart IP's data location.

1 call to GetLocationEvent::setLocation()
GetLocationEvent::__construct in src/GetLocationEvent.php
Constructs a Smart IP event.

File

src/GetLocationEvent.php, line 59
Contains \Drupal\smart_ip\GetLocationEvent.

Class

GetLocationEvent
Provides Smart IP query location override event for event listeners.

Namespace

Drupal\smart_ip

Code

public function setLocation(SmartIpLocationInterface $location) {
  $this->location = $location;
}