How to get the ip address of the current user in drupal 8?

0
(0)
$ip = Drupal::request()->getClientIp();

Similar Posts:

1,474

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Scroll to Top