protected function AppEditForm::canEditApiProducts in Apigee Edge 8
Access check for editing API products.
Return value
bool TRUE if current user can edit API products. FALSE otherwise.
2 calls to AppEditForm::canEditApiProducts()
- AppEditForm::form in src/
Entity/ Form/ AppEditForm.php - Gets the actual form array to be built.
- TeamAppEditForm::canEditApiProducts in modules/
apigee_edge_teams/ src/ Entity/ Form/ TeamAppEditForm.php - Access check for editing API products.
1 method overrides AppEditForm::canEditApiProducts()
- TeamAppEditForm::canEditApiProducts in modules/
apigee_edge_teams/ src/ Entity/ Form/ TeamAppEditForm.php - Access check for editing API products.
File
- src/
Entity/ Form/ AppEditForm.php, line 263
Class
- AppEditForm
- Base entity form for developer- and team (company) app edit forms.
Namespace
Drupal\apigee_edge\Entity\FormCode
protected function canEditApiProducts() : bool {
return $this
->currentUser()
->hasPermission('bypass api product access control') || $this
->currentUser()
->hasPermission("edit_api_products {$this->entity->getEntityTypeId()}");
}