I want that checkbox to be unchecked by default, because currently it's always checked.
And I want this result:
The structure of my content is as follows:
I want that checkbox to be unchecked by default, because currently it's always checked.
And I want this result:
The structure of my content is as follows:
With a form alter this should work:
function MYMODULE_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if (isset($form['#entity_type']) && $form['#entity_type'] == 'MY_ENTITY_TYPE') {
$form['status']['widget']['value']['#default_value'] = 0;
}
}
Simply edit your content type's default publishing options under example.com/admin/structure/types/manage/MYCONTENTTYPE (Structure > Content types > MYCONTENTTYPE > Edit).