Skip to content
Snippets Groups Projects
Commit e689237f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2004408 followup by alexpott: Allow modules to alter the result of...

Issue #2004408 followup by alexpott: Allow modules to alter the result of EntityListController::getOperations.
parent 9c173cfe
No related branches found
No related tags found
No related merge requests found
......@@ -531,7 +531,9 @@ protected function drupalCreateRole(array $permissions, $rid = NULL, $name = NUL
}
// Generate a random label.
if (!isset($name)) {
$name = $this->randomString(8);
// In the role UI role names are trimmed and random string can start or
// end with a space.
$name = trim($this->randomString(8));
}
// Check the all the permissions strings are valid.
......
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