Search for hasRole

  1. Search 7.x for hasRole
  2. Search 9.5.x for hasRole
  3. Search 10.3.x for hasRole
  4. Search 11.x for hasRole
  5. Other projects
Title Object type File name Summary
User::hasRole function core/modules/user/src/Entity/User.php
UserInterface::hasRole function core/modules/user/src/UserInterface.php Whether a user has a certain role.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.