interface ConnectionPermissionInterface in RedHen CRM 8
Defines an interface for Connection permission plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\redhen_connection\Plugin\ConnectionPermissionInterface
Expanded class hierarchy of ConnectionPermissionInterface
All classes that implement ConnectionPermissionInterface
3 files declare their use of ConnectionPermissionInterface
- ConnectionConnectionPermission.php in modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ ConnectionConnectionPermission.php - OrgConnectionPermission.php in modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ OrgConnectionPermission.php - SecondaryContactConnectionPermission.php in modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ SecondaryContactConnectionPermission.php
File
- modules/
redhen_connection/ src/ Plugin/ ConnectionPermissionInterface.php, line 12
Namespace
Drupal\redhen_connection\PluginView source
interface ConnectionPermissionInterface extends PluginInspectionInterface {
/**
* Get the entity key.
*
* @return string
* String representation of entity type for the permissions form.
*/
public function getPermissionKey();
/**
* Get the influencer entity.
*
* @param \Drupal\Core\Entity\EntityInterface $subject_entity
* The subject entity.
*
* @return array
* An array of Entities that influence the access of the subject entity.
*/
public function getInfluencers(EntityInterface $subject_entity);
/**
* Determine if the contact execute the operation on the subject entity.
*
* @param \Drupal\Core\Entity\EntityInterface $subject_entity
* The entity that is being accessed.
* @param string $operation
* The operation that is being performed (view, update, delete, view label).
* @param \Drupal\redhen_contact\Entity\Contact $contact
* The Redhen contact object.
*
* @return bool
* True is access is allowed, false if neutral.
*/
public function hasRolePermissions(EntityInterface $subject_entity, $operation, Contact $contact);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConnectionPermissionInterface:: |
public | function | Get the influencer entity. | 1 |
ConnectionPermissionInterface:: |
public | function | Get the entity key. | 1 |
ConnectionPermissionInterface:: |
public | function | Determine if the contact execute the operation on the subject entity. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |