You are here

public function TaxonomyPermissions::permissions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/TaxonomyPermissions.php \Drupal\taxonomy\TaxonomyPermissions::permissions()
  2. 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 51

Class

TaxonomyPermissions
Provides dynamic permissions of the taxonomy module.

Namespace

Drupal\taxonomy

Code

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