You are here

protected function Role::getRoles in Workbench Email 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/RecipientType/Role.php \Drupal\workbench_email\Plugin\RecipientType\Role::getRoles()

Gets value of roles.

Return value

array Value of roles

5 calls to Role::getRoles()
Role::buildConfigurationForm in src/Plugin/RecipientType/Role.php
Generates a recipient types's settings form.
Role::calculateDependencies in src/Plugin/RecipientType/Role.php
Calculates dependencies for the configured plugin.
Role::onDependencyRemoval in src/Plugin/RecipientType/Role.php
Informs the plugin that a dependency of the recipient type will be deleted.
Role::prepareRecipients in src/Plugin/RecipientType/Role.php
Returns email address(s) matching this recipient type's configuration.
RolesWithAccess::prepareRecipients in src/Plugin/RecipientType/RolesWithAccess.php
Returns email address(s) matching this recipient type's configuration.

File

src/Plugin/RecipientType/Role.php, line 150

Class

Role
Provides a recipient type of user role.

Namespace

Drupal\workbench_email\Plugin\RecipientType

Code

protected function getRoles() {
  return $this
    ->getConfiguration()['settings']['roles'];
}