public function TeamMemberApiProductAccessHandlerInterface::access in Apigee Edge 8
Checks access to an operation on a given API product.
Parameters
\Drupal\apigee_edge\Entity\ApiProductInterface $api_product: The API Product entity for which to check access.
string $operation: The operation access should be checked for. Usually one of "view", "view label", "update", "delete" or "assign".
\Drupal\apigee_edge_teams\Entity\TeamInterface $team: The team for which to check access.
\Drupal\Core\Session\AccountInterface|null $account: (optional) The user for which to check access, default is the current user.
bool $return_as_object: (optional) Defaults to FALSE.
Return value
bool|\Drupal\Core\Access\AccessResultInterface The access result. Returns a boolean if $return_as_object is FALSE (this is the default) and otherwise an AccessResultInterface object. When a boolean is returned, the result of AccessInterface::isAllowed() is returned, i.e. TRUE means access is explicitly allowed, FALSE means access is either explicitly forbidden or "no opinion".
1 method overrides TeamMemberApiProductAccessHandlerInterface::access()
- TeamMemberApiProductAccessHandler::access in modules/
apigee_edge_teams/ src/ TeamMemberApiProductAccessHandler.php - Checks access to an operation on a given API product.
File
- modules/
apigee_edge_teams/ src/ TeamMemberApiProductAccessHandlerInterface.php, line 59
Class
- TeamMemberApiProductAccessHandlerInterface
- Base definition of the team member API product access handler.
Namespace
Drupal\apigee_edge_teamsCode
public function access(ApiProductInterface $api_product, string $operation, TeamInterface $team, AccountInterface $account = NULL, bool $return_as_object = FALSE);