You are here

public function EntityQueuePermissions::permissions in Entityqueue 8

Returns an array of queue permissions.

Return value

array

1 string reference to 'EntityQueuePermissions::permissions'
entityqueue.permissions.yml in ./entityqueue.permissions.yml
entityqueue.permissions.yml

File

src/EntityQueuePermissions.php, line 20

Class

EntityQueuePermissions
Provides dynamic permissions for the Entityqueue module.

Namespace

Drupal\entityqueue

Code

public function permissions() {
  $perms = [];

  // Generate queue permissions for all queues.
  foreach (EntityQueue::loadMultiple() as $queue) {
    $perms += $this
      ->buildPermissions($queue);
  }
  return $perms;
}