I am experimenting with recipes. In my recipe, I create a view with a block and was hoping to add that block to a layout during the install process.
Here is the solution I found.
$layout = layout_load('<machine-name-layout>');
$layout->addBlock('<module-that-created-block>', '<machine-name-of-block>', '<region-to-insert-block>');
$layout->save();
Recent comments
It's not difficult to write JS code in an admin theme (without a module) that would save text from CKEditor to LocalStorage every X minutes and add a button to restore the text from LocalStorage...
Implementing autosave in Ckeditor 5
Another contrib module came to my mind: Save & Edit. Of course, that's also not what you had in mind - it saves to the server. But it can be helpful when the network the author's...
Implementing autosave in Ckeditor 5
... Autosave module that you mentioned, but it saves to the database I thought, that's what you're after. I am looking for is to save to localStorage...
Implementing autosave in Ckeditor 5
Thanks for your prompt reply. I tried the Autosave module that you mentioned, but it saves to the database, and the behavior I am looking for is to save to localStorage, in other words,...
Implementing autosave in Ckeditor 5
Hi lloyddunn, the important thing is: don't mix up CKEditor "autosave" (client side) and node save. Node save means, that the current form gets validated and saved to the Backdrop...
Implementing autosave in Ckeditor 5