Create a role programmatically in Drupal 8/9

In Drupal 8/9, we can create a role with the help of entity class Role present in hook_install().
Note: Need to uninstall module and reinstall module.
copy-icon

Comments

Authors

Read Next