You are here

public function DefaultRoleEventInterface::addRoles in Organic groups 8

Adds multiple default roles.

Parameters

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

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

File

src/Event/DefaultRoleEventInterface.php, line 63

Class

DefaultRoleEventInterface
Interface for DefaultRoleEvent classes.

Namespace

Drupal\og\Event

Code

public function addRoles(array $roles);