user.new_role.html.twig

Same filename in other branches
  1. 9 core/modules/help_topics/help_topics/user.new_role.html.twig
  2. 10 core/modules/user/help_topics/user.new_role.html.twig
  3. 11.x core/modules/user/help_topics/user.new_role.html.twig
---
label: 'Adding a new role'
related:
  - user.overview
  - user.permissions
---
{% set roles_url = render_var(url('entity.user_role.collection')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Create a new role.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>People</em> &gt; <a href="{{ roles_url}}"><em>Roles</em></a>.{% endtrans %}</li>
  <li>{% trans %}Click <em>Add role</em>.{% endtrans %}</li>
  <li>{% trans %}Enter the desired <em>Role name</em>. If desired, click <em>Edit</em> to change the <em>Machine name</em> for the role.{% endtrans %}</li>
  <li>{% trans %}Click <em>Save</em>. You should be returned to the <em>Roles</em> page and your new role should be in the role list.{% endtrans %}</li>
</ol>

File

core/modules/help_topics/help_topics/user.new_role.html.twig

View source
  1. ---
  2. label: 'Adding a new role'
  3. related:
  4. - user.overview
  5. - user.permissions
  6. ---
  7. {% set roles_url = render_var(url('entity.user_role.collection')) %}
  8. <h2>{% trans %}Goal{% endtrans %}</h2>
  9. <p>{% trans %}Create a new role.{% endtrans %}</p>
  10. <h2>{% trans %}Steps{% endtrans %}</h2>
  11. <ol>
  12. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>People</em> &gt; <a href="{{ roles_url}}"><em>Roles</em></a>.{% endtrans %}</li>
  13. <li>{% trans %}Click <em>Add role</em>.{% endtrans %}</li>
  14. <li>{% trans %}Enter the desired <em>Role name</em>. If desired, click <em>Edit</em> to change the <em>Machine name</em> for the role.{% endtrans %}</li>
  15. <li>{% trans %}Click <em>Save</em>. You should be returned to the <em>Roles</em> page and your new role should be in the role list.{% endtrans %}</li>
  16. </ol>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.