Using the Paragraphs module in Drupal 8, I am attempting to alter the behavior of the form fields contained within the paragraph field. This is so I can add behavior like AJAX callbacks, hide show other fields using states etc.
I can access the paragraph parent field using this function:
function hook_form_alter(&$form, DrupalCoreFormFormStateInterface $form_state, $form_id) { }
But how do I access the fields inside the paragraph?
I have tried hook_field_widget_form_alter
but to no avail.
How do I do this?
Note: I am still quite new to Drupal development.