You are here

public function TeamAppEditForm::form in Apigee Edge 8

Gets the actual form array to be built.

Overrides AppEditForm::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

File

modules/apigee_edge_teams/src/Entity/Form/TeamAppEditForm.php, line 98

Class

TeamAppEditForm
General form handler for the team app edit.

Namespace

Drupal\apigee_edge_teams\Entity\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);
  foreach (Element::children($form['credential']) as $credential) {
    $form['credential'][$credential]['api_products'] += $this
      ->nonMemberApiProductAccessWarningElement($form, $form_state);
  }
  return $form;
}