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