You are here

public function ProfileType::getRoles in Profile 8

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

Return value

string[] The role IDs. If empty, all roles are allowed.

Overrides ProfileTypeInterface::getRoles

File

src/Entity/ProfileType.php, line 170

Class

ProfileType
Defines the profile type entity class.

Namespace

Drupal\profile\Entity

Code

public function getRoles() {
  return $this->roles;
}