src/Listener/ConfigSubscriber.php
public function enterThemeContext(InitializeLayout $event): void
    {
        $event->getEnvironment()->enterContext(ThemeContext::forTheme((int) $event->getLayoutModel()->pid));
    }
public function enterThemeContext(InitializeLayout $event): void
    {
        $event->getEnvironment()->enterContext(ThemeContext::forTheme((int) $event->getLayoutModel()->pid));
    }
Enter the heme context.

@param InitializeLayout $event The subscribed event.

@return void