You are here

public function ProfileTypeInterface::setRoles in Profile 8

Sets the user roles allowed to have profiles of this type.

Parameters

string[] $rids: The role IDs.

Return value

$this

1 method overrides ProfileTypeInterface::setRoles()
ProfileType::setRoles in src/Entity/ProfileType.php
Sets the user roles allowed to have profiles of this type.

File

src/Entity/ProfileTypeInterface.php, line 87

Class

ProfileTypeInterface
Provides an interface defining a profile type entity.

Namespace

Drupal\profile\Entity

Code

public function setRoles(array $rids);