Role::setIsAdmin

public Role::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

Overrides RoleInterface::setIsAdmin

File

core/modules/user/src/Entity/Role.php, line 153

Class

Role
Defines the user role entity class.

Namespace

Drupal\user\Entity

Code

public function setIsAdmin($is_admin) {
  $this->is_admin = $is_admin;
  return $this;
}
doc_Drupal
2016-10-29 09:38:45
Comments
Leave a Comment

Please login to continue.