Exemplo n.º 1
0
  /**
   * Gets an array of eform type permissions.
   *
   * @return array
   *    The eform type permissions.
   *
   * @see \Drupal\user\PermissionHandlerInterface::getPermissions()
   */
  public function eformTypePermissions() {
    $perms = array();
    // Generate eform permissions for all eform types.
    foreach (EFormType::loadMultiple() as $type) {
      $perms += $this->buildPermissions($type);
    }

    return $perms;
  }