You are here

public function ConnectionPermissionBase::getPermissionKey in RedHen CRM 8

Get the entity key.

Return value

string String representation of entity type for the permissions form.

Overrides ConnectionPermissionInterface::getPermissionKey

3 methods override ConnectionPermissionBase::getPermissionKey()
ConnectionConnectionPermission::getPermissionKey in modules/redhen_connection/src/Plugin/ConnectionPermission/ConnectionConnectionPermission.php
Get the entity key.
OrgConnectionPermission::getPermissionKey in modules/redhen_connection/src/Plugin/ConnectionPermission/OrgConnectionPermission.php
Get the entity key.
SecondaryContactConnectionPermission::getPermissionKey in modules/redhen_connection/src/Plugin/ConnectionPermission/SecondaryContactConnectionPermission.php
Get the entity key.

File

modules/redhen_connection/src/Plugin/ConnectionPermissionBase.php, line 33

Class

ConnectionPermissionBase
Base class for Connection permission plugins.

Namespace

Drupal\redhen_connection\Plugin

Code

public function getPermissionKey() {
  return $this
    ->get('subject_entity_type') . ($this
    ->get('subject_entity_bundle') ? ".{$this->get('subject_entity_bundle')}" : "");
}