You are here

public function Homebox::setRoles in Homebox 8

Sets the list of user role IDs.

Parameters

array $roles: The list of user role IDs.

Return value

$this

Overrides HomeboxInterface::setRoles

File

src/Entity/Homebox.php, line 138

Class

Homebox
Defines the Homebox entity.

Namespace

Drupal\homebox\Entity

Code

public function setRoles(array $roles) {
  $this->roles = $roles;
  return $this;
}