In a Movimenti content type, I have several fields one of these is an entity references, linked to an Anagrafica Dipendente data content type.
The field is enhanced by a function. In form_alter I need to take a field of the Anagrafica Dipendente.
I saw the array of the field and was thinking of using this code
$id = $form['field_dipendente']['widget'][0]['target_id']['#default_value']['id'];
But the error returns to me
Error: Cannot use object of type Drupal\node\Entity\Node
By clicking at the profile page at one of the submissions it takes me to a unstyled page which has not the theme of the whole site.
How can I them this site in the same way like the whole site?
Looking for a Javascript expert who can hide the 'Next' button on an Opigno Install Drupal 8. Bonus if you are familiar with Opigno as we are also looking for long term support.
The button will become visible once a person has completed the embedded SCORM package.