Exemplo n.º 1
0
 /**
  * Returns an array of entity type permissions.
  *
  * @return array
  *   The permissions.
  */
 public function entityTypePermissions()
 {
     $perms = array();
     // Generate entity permissions for all entity types.
     foreach (EckEntityBundle::loadMultiple() as $eck_type) {
         $perms = array_merge($perms, $this->buildPermissions($eck_type));
     }
     return $perms;
 }