Skip to content

Commit 877db1b

Browse files
committed
Update modules/apigee_edge_teams/src/Entity/Form/TeamForm.php
1 parent c89c4d1 commit 877db1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/apigee_edge_teams/src/Entity/Form/TeamForm.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ public function buildEntity(array $form, FormStateInterface $form_state) {
101101
/** @var \Drupal\apigee_edge_teams\Entity\TeamInterface $team */
102102
$team = parent::buildEntity($form, $form_state);
103103

104-
// Set the required attributes for the team.
104+
// ADMIN_EMAIL_ATTRIBUTE is a required field for monetization.
105+
// We add to any team to make sure team creation works for mint orgs even
106+
// if they do not enable the m10n teams module.
105107
$team->setAttribute(static::ADMIN_EMAIL_ATTRIBUTE, $this->currentUser->getEmail());
106108

107109
return $team;

0 commit comments

Comments
 (0)