You are here

public function RolesWithAccess::buildConfigurationForm in Workbench Email 2.x

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

Generates a recipient types's settings form.

Parameters

array $form: A minimally prepopulated form array.

\Drupal\Core\Form\FormStateInterface $form_state: The state of the (entire) configuration form.

Return value

array The $form array with additional form elements for the settings of this recipient type. The submitted form values should match $this->settings.

Overrides Role::buildConfigurationForm

File

src/Plugin/RecipientType/RolesWithAccess.php, line 31

Class

RolesWithAccess
Provides a recipient type for Workbench Access Sections.

Namespace

Drupal\workbench_email\Plugin\RecipientType

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $build = parent::buildConfigurationForm($form, $form_state);
  $build['roles']['#description'] = $this
    ->t('Send to all users with selected roles who have permission to update the transitioned item.');
  return $build;
}