public function ReferencePermissions::referenceTypePermissions in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 modules/bibcite_entity/src/ReferencePermissions.php \Drupal\bibcite_entity\ReferencePermissions::referenceTypePermissions()
Returns an array of Reference type permissions.
Return value
array The Reference type permissions.
See also
\Drupal\user\PermissionHandlerInterface::getPermissions()
1 string reference to 'ReferencePermissions::referenceTypePermissions'
- bibcite_entity.permissions.yml in modules/
bibcite_entity/ bibcite_entity.permissions.yml - modules/bibcite_entity/bibcite_entity.permissions.yml
File
- modules/
bibcite_entity/ src/ ReferencePermissions.php, line 23
Class
- ReferencePermissions
- Provides dynamic permissions for References of different types.
Namespace
Drupal\bibcite_entityCode
public function referenceTypePermissions() {
$perms = [];
// Generate Reference permissions for all types.
foreach (ReferenceType::loadMultiple() as $type) {
$perms += $this
->buildPermissions($type);
}
return $perms;
}