You are here

public function ProfileTypeInterface::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.

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

File

src/Entity/ProfileTypeInterface.php, line 77

Class

ProfileTypeInterface
Provides an interface defining a profile type entity.

Namespace

Drupal\profile\Entity

Code

public function getRoles();