public function Permissions::scheduledUpdateTypesPermissions in Scheduled Updates 8
Returns an array of node type permissions.
Return value
array The node type permissions. @see \Drupal\user\PermissionHandlerInterface::getPermissions()
1 string reference to 'Permissions::scheduledUpdateTypesPermissions'
File
- src/
Permissions.php, line 29 - Contains \Drupal\scheduled_updates\Permissions.
Class
- Permissions
- Provides dynamic permissions for nodes of different types.
Namespace
Drupal\scheduled_updatesCode
public function scheduledUpdateTypesPermissions() {
$perms = array();
// Generate scheduled_update permissions for all scheduled updates types.
foreach (ScheduledUpdateType::loadMultiple() as $type) {
$perms += $this
->buildPermissions($type);
}
return $perms;
}