pageConfig = $pageConfig; $this->getThemeInformation = $getThemeInformation; } /** * Add theme vendor and theme name classes. * * @param \Magento\Framework\Event\Observer $observer */ public function execute(Observer $observer) { $this->pageConfig ->addBodyClass(self::CSS_CLASS_PREFIX . $this->getThemeInformation->getVendor()) ->addBodyClass(self::CSS_CLASS_PREFIX . $this->getThemeInformation->getName()); } }