class OrgConnectionPermission in RedHen CRM 8
Provides permission for access to connected redhen_orgs.
Plugin annotation
@ConnectionPermission(
id = "org_connection_permission",
label = @Translation("Organization"),
description = @Translation("Sitewide permissions will override this setting."),
subject_entity_type = "redhen_org",
subject_entity_bundle = "",
influencer_entity_type = "",
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\redhen_connection\Plugin\ConnectionPermissionBase implements ConnectionPermissionInterface
- class \Drupal\redhen_connection\Plugin\ConnectionPermission\OrgConnectionPermission implements ConnectionPermissionInterface
- class \Drupal\redhen_connection\Plugin\ConnectionPermissionBase implements ConnectionPermissionInterface
Expanded class hierarchy of OrgConnectionPermission
File
- modules/
redhen_connection/ src/ Plugin/ ConnectionPermission/ OrgConnectionPermission.php, line 22
Namespace
Drupal\redhen_connection\Plugin\ConnectionPermissionView source
class OrgConnectionPermission extends ConnectionPermissionBase implements ConnectionPermissionInterface {
/**
* {@inheritDoc}
*/
public function getPermissionKey() {
return 'entity';
}
/**
* {@inheritdoc}
*/
public function hasRolePermissions(EntityInterface $subject_entity, $operation, Contact $contact) {
return $this->redhenConnectionConnections
->checkConnectionPermission($contact, $subject_entity, $operation, $this
->getPermissionKey());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConnectionPermissionBase:: |
public | property | Connection Service. | |
ConnectionPermissionBase:: |
public | function | Get values from plugin definition. | |
ConnectionPermissionBase:: |
public | function |
Get the influencer entity. Overrides ConnectionPermissionInterface:: |
2 |
ConnectionPermissionBase:: |
public | function |
Constructs a \Drupal\Component\Plugin\PluginBase object. Overrides PluginBase:: |
|
OrgConnectionPermission:: |
public | function |
Get the entity key. Overrides ConnectionPermissionBase:: |
|
OrgConnectionPermission:: |
public | function |
Determine if the contact execute the operation on the subject entity. Overrides ConnectionPermissionBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. |