You are here

public function ConnectionPermissionInterface::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.

1 method overrides ConnectionPermissionInterface::hasRolePermissions()
ConnectionPermissionBase::hasRolePermissions in modules/redhen_connection/src/Plugin/ConnectionPermissionBase.php
Determine if the contact execute the operation on the subject entity.

File

modules/redhen_connection/src/Plugin/ConnectionPermissionInterface.php, line 46

Class

ConnectionPermissionInterface
Defines an interface for Connection permission plugins.

Namespace

Drupal\redhen_connection\Plugin

Code

public function hasRolePermissions(EntityInterface $subject_entity, $operation, Contact $contact);