$ip = Drupal::request()->getClientIp();
Similar Posts:
- Accessing raw parameter values in Drupal 8
- url without www and http to https in drupal 8/9
- How to change Drupal core files
- change canonical URL in drupal 8 & 9
- How to apply Drupal Patch
1,472
$ip = Drupal::request()->getClientIp();