public function SplashifyGroupEntity::getRoles in Splashify 8.2
File
- src/
Entity/ SplashifyGroupEntity.php, line 161
Class
- SplashifyGroupEntity
- Defines the Splashify group entity entity.
Namespace
Drupal\splashify\EntityCode
public function getRoles() {
$roles = [];
foreach ($this
->get('field_roles')
->getValue() as $role) {
$roles[] = $role['target_id'];
}
return $roles;
}