Naming Blocks Via Code
In the GUI we can name blocks but there does not appear to be any documentation on doing this through code. We are setting a custom php file that contains the html generated code to be sent to view but cannot find a way to set a name on blocks.
Does anyone know how we might achieve this? Is it hidden or protected maybe?
We are creating pages using blocks and stacks. These blocks may need to be updated using the API in the future and need to see if there is a way to get the correct block for the data we are updating.
Have you tried the setName() method?