public function GetLocationEvent::__construct in Smart IP 8.2
Same name and namespace in other branches
- 8.4 src/GetLocationEvent.php \Drupal\smart_ip\GetLocationEvent::__construct()
- 8.3 src/GetLocationEvent.php \Drupal\smart_ip\GetLocationEvent::__construct()
Constructs a Smart IP event.
Parameters
\Drupal\smart_ip\SmartIpLocationInterface $location:
File
- src/
GetLocationEvent.php, line 36 - Contains \Drupal\smart_ip\GetLocationEvent.
Class
- GetLocationEvent
- Provides Smart IP query location override event for event listeners.
Namespace
Drupal\smart_ipCode
public function __construct(SmartIpLocationInterface $location) {
$this
->setLocation($location);
$this->dataSource = \Drupal::config('smart_ip.settings')
->get('data_source');
}