You are here

class ContactPermissions in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/ContactPermissions.php \Drupal\crm_core_contact\ContactPermissions
  2. 8.2 modules/crm_core_contact/src/ContactPermissions.php \Drupal\crm_core_contact\ContactPermissions

Class ContactPermissions.

Hierarchy

Expanded class hierarchy of ContactPermissions

File

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

Namespace

Drupal\crm_core_contact
View source
class ContactPermissions {

  /**
   * Returns Individual and Organization permissions.
   *
   * @return array
   *   CRM Core Individual and Organization permissions.
   */
  public function permissions() {
    $perm_builder = new CRMCorePermissions();
    return array_merge($perm_builder
      ->entityTypePermissions('crm_core_individual'), $perm_builder
      ->entityTypePermissions('crm_core_organization'));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ContactPermissions::permissions public function Returns Individual and Organization permissions.