protected function Role::setRoles in Workbench Email 2.x
Same name and namespace in other branches
- 8 src/Plugin/RecipientType/Role.php \Drupal\workbench_email\Plugin\RecipientType\Role::setRoles()
Sets roles.
Parameters
array $roles: Role IDs.
Return value
$this
2 calls to Role::setRoles()
- Role::onDependencyRemoval in src/
Plugin/ RecipientType/ Role.php - Informs the plugin that a dependency of the recipient type will be deleted.
- Role::submitConfigurationForm in src/
Plugin/ RecipientType/ Role.php - Form submission handler.
File
- src/
Plugin/ RecipientType/ Role.php, line 162
Class
- Role
- Provides a recipient type of user role.
Namespace
Drupal\workbench_email\Plugin\RecipientTypeCode
protected function setRoles(array $roles) {
$configuration = $this
->getConfiguration();
$configuration['settings']['roles'] = $roles;
$this
->setConfiguration($configuration);
return $this;
}