_objectManager = $objectManager; } /** * Retrieve subject * * @return \Magento\Config\Model\Config\Structure\SearchInterface */ protected function _getSubject() { if (!$this->_subject) { $this->_subject = $this->_objectManager->get(\Magento\Config\Model\Config\Structure::class); } return $this->_subject; } /** * Find element by path * * @param string $path * @return \Magento\Config\Model\Config\Structure\ElementInterface|null */ public function getElement($path) { return $this->_getSubject()->getElement($path); } }