By Arun AK, 21 May, 2017 Check user has particular permission in Drupal 8 In drupal 8 we can use hasPermission() method to check user permission.
By Arun AK, 21 May, 2017 How to get current user details in drupal 8 In drupal 8 you can get current logged in users info by using currentUser() method. If you want to use it in module file or other than a class you can call this method like below...