request = $request; $this->currentSection = $currentSection; } /** * Add layout handles. * * @param \Magento\Framework\Event\Observer $observer */ public function execute(Observer $observer) { if ('adminhtml_system_config_edit' === $this->request->getFullActionName() && $this->currentSection->isPlumrocketExtension() ) { /** @var \Magento\Framework\View\Layout\ProcessorInterface $update */ $update = $observer->getEvent()->getLayout()->getUpdate(); $update->addHandle('pr_system_config_edit'); $update->addHandle('pr_system_config_edit_' . $this->currentSection->getId()); } } }