- 🇳🇿New Zealand DanielVeza Brisbane, AU
This can check if the current route is using layout builder with code like this stripped back example
$parameters = $this->routeMatch->getParameters(); if ($parameters->has('section_storage')) { if ($parameters->get('section_storage') instanceof SectionStorageInterface) { return TRUE; } return FALSE; }
Then in a preprocess you can add a class if that returns TRUE.
I'm -1 of building something like this into core, I think it's something that can be quite easily added on a site by site basis, or it could be a contrib module.
Postponing for others to give thoughts