public function DeveloperAppAnalyticsForm::buildForm in Apigee Edge 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides AppAnalyticsFormBase::buildForm
1 call to DeveloperAppAnalyticsForm::buildForm()
- DeveloperAppAnalyticsFormForDeveloper::buildForm in src/
Form/ DeveloperAppAnalyticsFormForDeveloper.php - This override here is important because the name of the third parameter is different. This way, Drupal's routing system can correctly identify it and pass the parameter from the URL.
1 method overrides DeveloperAppAnalyticsForm::buildForm()
- DeveloperAppAnalyticsFormForDeveloper::buildForm in src/
Form/ DeveloperAppAnalyticsFormForDeveloper.php - This override here is important because the name of the third parameter is different. This way, Drupal's routing system can correctly identify it and pass the parameter from the URL.
File
- src/
Form/ DeveloperAppAnalyticsForm.php, line 40
Class
- DeveloperAppAnalyticsForm
- Displays the analytics page of a developer app on the UI.
Namespace
Drupal\apigee_edge\FormCode
public function buildForm(array $form, FormStateInterface $form_state, ?AppInterface $developer_app = NULL) {
// Pass the "developer_app" (!= app) from the route to the parent.
return parent::buildForm($form, $form_state, $developer_app);
}