diff --git a/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php b/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php index de06f6a5..c03a4b8f 100644 --- a/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php +++ b/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php @@ -101,7 +101,9 @@ public function buildEntity(array $form, FormStateInterface $form_state) { /** @var \Drupal\apigee_edge_teams\Entity\TeamInterface $team */ $team = parent::buildEntity($form, $form_state); - // Set the required attributes for the team. + // ADMIN_EMAIL_ATTRIBUTE is a required field for monetization. + // We add to any team to make sure team creation works for mint orgs even + // if they do not enable the m10n teams module. $team->setAttribute(static::ADMIN_EMAIL_ATTRIBUTE, $this->currentUser->getEmail()); return $team;