You are here

public function DefaultRoleEventInterface::setRoles in Organic groups 8

Sets multiple default roles.

Parameters

\Drupal\og\Entity\OgRole[] $roles: An array of OgRole entities to set. These should be unsaved entities that don't have the group entity type and bundle IDs set.

1 method overrides DefaultRoleEventInterface::setRoles()
DefaultRoleEvent::setRoles in src/Event/DefaultRoleEvent.php
Sets multiple default roles.

File

src/Event/DefaultRoleEventInterface.php, line 85

Class

DefaultRoleEventInterface
Interface for DefaultRoleEvent classes.

Namespace

Drupal\og\Event

Code

public function setRoles(array $roles);