function TaxonomyPermissions::permissions

Same name in other branches
  1. 9 core/modules/taxonomy/src/TaxonomyPermissions.php \Drupal\taxonomy\TaxonomyPermissions::permissions()
  2. 10 core/modules/taxonomy/src/TaxonomyPermissions.php \Drupal\taxonomy\TaxonomyPermissions::permissions()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.