You are here

public function TaxonomyPermissions::permissions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/TaxonomyPermissions.php \Drupal\taxonomy\TaxonomyPermissions::permissions()

Get taxonomy permissions.

Return value

array Permissions array.

1 string reference to 'TaxonomyPermissions::permissions'
taxonomy.permissions.yml in core/modules/taxonomy/taxonomy.permissions.yml
core/modules/taxonomy/taxonomy.permissions.yml

File

core/modules/taxonomy/src/TaxonomyPermissions.php, line 57

Class

TaxonomyPermissions
Provides dynamic permissions of the taxonomy module.

Namespace

Drupal\taxonomy

Code

public function permissions() {
  $permissions = [];
  foreach (Vocabulary::loadMultiple() as $vocabulary) {
    $permissions += $this
      ->buildPermissions($vocabulary);
  }
  return $permissions;
}