4

I have a Content Admin and a Translator Roles.

Content Admin's can create, edit, delete, and publish content (this is working fine)

Translator's shouldn't be allowed to publish content, they should only be able to create and edit translations. (it should save as unpublished).

Anyone know how to achieve what I'm trying to do in Drupal 8? Or know if a module that does this has been ported to Drupal 8?

2

You will need to alter insert / update node entity form:

  1. Define a permission "Save unpublished content"
  2. Make a hook_form_alter or hook_form_ENTITY_TYPE_form_alter
  3. Check if you are alter the exact entity types you need.
  4. Hide all buttons you don't need (based on permission)
  5. Add button ('save unpublished content') (based on persmission)
  6. When submitting: call the default submission and add yours to set the status 0.

Save button is an UL with two LI elements: save published, save unpublished:

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.