public function MailingListPermissions::mailListPermissions in Mailing List 8
Returns an array of mailing list permissions.
Return value
array The mailing list type permissions.
1 string reference to 'MailingListPermissions::mailListPermissions'
File
- src/
MailingListPermissions.php, line 23
Class
- MailingListPermissions
- Provides dynamic permissions for each mailing list.
Namespace
Drupal\mailing_listCode
public function mailListPermissions() {
$perms = [];
// Generate mailing list permissions for each list.
foreach (MailingList::loadMultiple() as $list) {
$perms += $this
->buildPermissions($list);
}
return $perms;
}