public function TeamAppEditForm::__construct in Apigee Edge 8
Constructs TeamAppEditForm.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\apigee_edge_teams\Entity\Controller\TeamAppCredentialControllerFactoryInterface $app_credential_controller_factory: The team app credential controller factory.
\Drupal\apigee_edge_teams\TeamPermissionHandlerInterface $team_permission_handler: The team permission handler.
Overrides AppEditForm::__construct
File
- modules/
apigee_edge_teams/ src/ Entity/ Form/ TeamAppEditForm.php, line 67
Class
- TeamAppEditForm
- General form handler for the team app edit.
Namespace
Drupal\apigee_edge_teams\Entity\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, TeamAppCredentialControllerFactoryInterface $app_credential_controller_factory, TeamPermissionHandlerInterface $team_permission_handler = NULL) {
if (!$team_permission_handler) {
$team_permission_handler = \Drupal::service('apigee_edge_teams.team_permissions');
}
parent::__construct($entity_type_manager, $renderer);
$this->appCredentialControllerFactory = $app_credential_controller_factory;
$this->teamPermissionHandler = $team_permission_handler;
}