Does someone know when the function DefaultLayersInitializer::CreateDefaultLayers() (Orchard.Widgets) is called?
I debugged a new installation of Orchard. I put a break point in this function and it was never hit.
This function seems to create the layers "Default", "Authenticated", "Anonymous" and "Disabled" but actually they seem to be created by the following lines in the Command section of the recipe file:
layer create Default /LayerRule:"true"
layer create Authenticated /LayerRule:"authenticated"
layer create Anonymous /LayerRule:"not authenticated"
layer create Disabled /LayerRule:"false"
I want to create default records (not content items) and I thought I could use something similar to CreateDefaultLayers. Looks like that doesn't work... Should I create these records in the class wich inherits from DataMigrationImpl or should I create
a command such as 'layer create' and call it through the recipe file?