public RoleInterface::setIsAdmin($is_admin)
Sets the role to be an admin role.
Parameters
bool $is_admin: TRUE if the role should be an admin role.
Return value
$this
File
- core/modules/user/src/RoleInterface.php, line 80
Class
- RoleInterface
- Provides an interface defining a user role entity.
Namespace
Drupal\user
Code
public function setIsAdmin($is_admin);
Please login to continue.