Skip to content

Commit

Permalink
Update modules/apigee_edge_teams/src/Entity/Form/TeamForm.php
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Feb 10, 2020
1 parent c89c4d1 commit 877db1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/apigee_edge_teams/src/Entity/Form/TeamForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 877db1b

Please sign in to comment.