I’m using Drupal 9 and Group invite module.
Configuration for this module allows to alter the text on email invitations: /admin/group/content/manage/groupname-group_invitation
I’m trying to use HTML in "Invitation e-mai" body, but the Group invite module replaces HTTML with "*" symbol.
So I’ve created hook_form_alter() in my custom module and putted this code:
$form['invitation_email']['invitation_body']['#type'] = 'text_format'; $form['invitation_email']['invitation_body']['#format'] = 'full_html';
Now CkEditor appears on Group invite configuration pages, but when I’m altering the text and pressing "Save configuration" I’m receiving the error:
InvalidArgumentException: The configuration property plugin_config.invitation_body.value doesn’t exist. in DrupalCoreConfigSchemaArrayElement->get() (line 76 of /app/core/lib/Drupal/Core/Config/Schema/ArrayElement.php).
Maybe somebody could point me out how to solve this problem?