Skip to main content
100%

getting all roles

✓ Published0🌍 Public
Aalexfinnarn
Last edited Aug 23, 2018
Created on Aug 23, 2018

This visualization displays the relationships between user roles and their permissions in a Backdrop CMS environment. It uses the PHP `user_roles()` function to fetch role data from configuration files, reading names with the `config_get_names_with_prefix()` API. The example renders a network diagram where each role appears as a node, with edges connecting roles that share permissions. The data source is the site’s user role configuration, and the layout is computed using a force-directed graph algorithm, though the specific JavaScript library (such as d3.forceSimulation) is not shown in the provided code snippet.

AI-generated description

Similar vizzes