public function EntityQueuePermissions::permissions in Entityqueue 8
Returns an array of queue permissions.
Return value
array
1 string reference to 'EntityQueuePermissions::permissions'
File
- src/
EntityQueuePermissions.php, line 20
Class
- EntityQueuePermissions
- Provides dynamic permissions for the Entityqueue module.
Namespace
Drupal\entityqueueCode
public function permissions() {
$perms = [];
// Generate queue permissions for all queues.
foreach (EntityQueue::loadMultiple() as $queue) {
$perms += $this
->buildPermissions($queue);
}
return $perms;
}