public function FixedEmail::buildConfigurationForm in Workbench Email 2.x
Same name and namespace in other branches
- 8 src/Plugin/RecipientType/FixedEmail.php \Drupal\workbench_email\Plugin\RecipientType\FixedEmail::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 RecipientTypeBase::buildConfigurationForm
File
- src/
Plugin/ RecipientType/ FixedEmail.php, line 32
Class
- FixedEmail
- Provides a recipient type of fixed email field
Namespace
Drupal\workbench_email\Plugin\RecipientTypeCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
return [
'recipients' => [
'#type' => 'textfield',
'#title' => $this
->t('Recipients'),
'#description' => $this
->t('Enter recipient addresses, separated by commas'),
'#default_value' => $this
->getConfiguration()['settings']['recipients'],
],
];
}