public function ConnectionServiceInterface::checkConnectionPermission in RedHen CRM 8
Check entity access via its connections & current user's connection roles.
Parameters
\Drupal\Core\Entity\EntityInterface $endpoint1: Endpoint 1 of the connection.
\Drupal\Core\Entity\EntityInterface $endpoint2: Endpoint 2 of the connection.
string $operation: The entity operation (view, view label, update, delete, create)
string $permission_key: Key for checking permissions against.
Return value
\Drupal\Core\Access\AccessResultInterface Access result, either neutral or allowed.
1 method overrides ConnectionServiceInterface::checkConnectionPermission()
- ConnectionService::checkConnectionPermission in modules/
redhen_connection/ src/ ConnectionService.php - Check entity access via its connections & current user's connection roles.
File
- modules/
redhen_connection/ src/ ConnectionServiceInterface.php, line 96
Class
- ConnectionServiceInterface
- Provides an interface for getting connections between entities.
Namespace
Drupal\redhen_connectionCode
public function checkConnectionPermission(EntityInterface $endpoint1, EntityInterface $endpoint2, $operation, $permission_key);