Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
From the configuration form that is loaded when a new block is being placed, or existing block configuration is being edited, how can one determine, programmatically, if the active form is for a new block or configuring an existing block?
This appears to be possible as the form itself changes the access to the machine name property between a new block and existing block, but I haven't been able to figure out what property it is looking at or where this part of the form is being built from.