public function ConnectionConnectionPermission::getInfluencers in RedHen CRM 8
Get the influencer entity.
Parameters
\Drupal\Core\Entity\EntityInterface $subject_entity: The subject entity.
Return value
array An array of Entities that influence the access of the subject entity.
Overrides ConnectionPermissionBase::getInfluencers
1 call to ConnectionConnectionPermission::getInfluencers()
- ConnectionConnectionPermission::hasRolePermissions in modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ ConnectionConnectionPermission.php - Determine if the contact execute the operation on the subject entity.
File
- modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ ConnectionConnectionPermission.php, line 43
Class
- ConnectionConnectionPermission
- Provide permissions for the connection entity of a redhen_connection.
Namespace
Drupal\redhen_connection\Plugin\ConnectionPermissionCode
public function getInfluencers(EntityInterface $subject_entity) {
// Return the connections for current contact and the subject.
return $this->redhenConnectionConnections
->getConnectedEntities($this->contact, $subject_entity
->getType());
}