Problem/Motivation
It is not currently possible to create a Page Layout Display for admin pages as /admin*.
Because we stop page layout to load in PageVariantSubscriber.php.
Proposed resolution
If we remove this line, this will create a problem on loading the admin theme for the admin page if the user as permission 'access administration theme'. Because then we don't load the admin theme and the frontend theme is missing.
This is probably a complex problem, and as a starter we should probably only support admin page layout for user that can not access the backend theme.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
pdureau commentedThat sounds fun, i will give a little try.
Comment #4
pdureau commentedHello,
It is not ready for merge yet, it lacks documentation update and automatic tests, but it is ready enough to be talked about :)
the proposal
Page layout config entities have a new "admin" boolean property (FALSE by default):


When FALSE, everything work exactly as before:
When TRUE:
(by the way, this admin VS front theme logic is orthogonal to #3562060: Render UI with admin theme which is about the "chrome" of the display builder: toolbar, sidebars, menus.. here, we switch the full page indeed, but the goal is to switch what is rendered in the builder & preview panels)
To discuss
What do we do with SDC from themes in ComponentLibrary and ComponentLibraryDefinitionHelper? My proposal:
Let's talk