You are here

public function ContactPermissions::permissions in CRM Core 8.2

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/ContactPermissions.php \Drupal\crm_core_contact\ContactPermissions::permissions()
  2. 8 modules/crm_core_contact/src/ContactPermissions.php \Drupal\crm_core_contact\ContactPermissions::permissions()

Returns Individual and Organization permissions.

Return value

array CRM Core Individual and Organization permissions.

1 string reference to 'ContactPermissions::permissions'
crm_core_contact.permissions.yml in modules/crm_core_contact/crm_core_contact.permissions.yml
modules/crm_core_contact/crm_core_contact.permissions.yml

File

modules/crm_core_contact/src/ContactPermissions.php, line 18

Class

ContactPermissions
Class ContactPermissions.

Namespace

Drupal\crm_core_contact

Code

public function permissions() {
  $perm_builder = new CRMCorePermissions();
  return array_merge($perm_builder
    ->entityTypePermissions('crm_core_individual'), $perm_builder
    ->entityTypePermissions('crm_core_organization'));
}