function TaxonomyPermissions::permissions

Same name in other branches
  1. 8.9.x 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 51

Class

TaxonomyPermissions
Provides dynamic permissions of the taxonomy module.

Namespace

Drupal\taxonomy

Code

public function permissions() {
    return $this->generatePermissions(Vocabulary::loadMultiple(), [
        $this,
        'buildPermissions',
    ]);
}

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