function _social_language_get_permissions in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 8 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 8.2 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 8.3 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 8.4 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 8.5 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 8.7 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 8.8 modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 10.3.x modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 10.0.x modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 10.1.x modules/custom/social_language/social_language.install \_social_language_get_permissions()
- 10.2.x modules/custom/social_language/social_language.install \_social_language_get_permissions()
Build the permissions.
1 call to _social_language_get_permissions()
- _social_language_set_permissions in modules/
custom/ social_language/ social_language.install - Function to set permissions.
File
- modules/
custom/ social_language/ social_language.install, line 46 - Install, update and uninstall functions for the social_language module.
Code
function _social_language_get_permissions($role) {
// Site manager.
$permissions['sitemanager'] = [
'create content translations',
'delete content translations',
'update content translations',
'translate any entity',
];
return isset($permissions[$role]) ? $permissions[$role] : [];
}