public function ConnectionPermissionBase::hasRolePermissions in RedHen CRM 8
Determine if the contact execute the operation on the subject entity.
Parameters
\Drupal\Core\Entity\EntityInterface $subject_entity: The entity that is being accessed.
string $operation: The operation that is being performed (view, update, delete, view label).
\Drupal\redhen_contact\Entity\Contact $contact: The Redhen contact object.
Return value
bool True is access is allowed, false if neutral.
Overrides ConnectionPermissionInterface::hasRolePermissions
3 methods override ConnectionPermissionBase::hasRolePermissions()
- ConnectionConnectionPermission::hasRolePermissions in modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ ConnectionConnectionPermission.php - Determine if the contact execute the operation on the subject entity.
- OrgConnectionPermission::hasRolePermissions in modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ OrgConnectionPermission.php - Determine if the contact execute the operation on the subject entity.
- SecondaryContactConnectionPermission::hasRolePermissions in modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ SecondaryContactConnectionPermission.php - Determine if the contact execute the operation on the subject entity.
File
- modules/
redhen_connection/ src/ Plugin/ ConnectionPermissionBase.php, line 45
Class
- ConnectionPermissionBase
- Base class for Connection permission plugins.
Namespace
Drupal\redhen_connection\PluginCode
public function hasRolePermissions(EntityInterface $subject_entity, $operation, Contact $contact) {
}