Skip to content
Snippets Groups Projects
Commit bdec1641 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3419771: user_roles() is deprecated

parent 7ee913ee
Branches 1.0.x
Tags 1.0.1
No related merge requests found
Pipeline #91333 passed with warnings
......@@ -244,7 +244,14 @@ function workflow_access_node_access_explain($row) {
break;
case 'workflow_access':
$roles = user_roles();
if (version_compare(\Drupal::VERSION, '10.2', '>=')) {
$roles = Role::loadMultiple();
}
else {
// @phpstan-ignore-next-line
$roles = user_roles();
}
$interpretations[$row->gid] = t(
'Workflow access: %role may access', ['%role' => $roles[$row->gid]]
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment