I'm trying to limit the access for users to change the value of text format dropdown but I can't seem to find the correct dropdown to alter. Here's what I have so far but it seems to disable access to the field itself and not the text format dropdown.
function hook_field_widget_WIDGET_TYPE_form_alter(&$element, &$form_state, $context) {
if ($element['#paragraph_type'] == 'my_paragraph_bundle') {
$element['subform']['field_text_long']['widget'][0]['#format']['#access'] = FALSE;
}
}