/** * Initialize block * * @return void */ protected function _init() { $xmlFilePath = $this->getXmlFilePath(); if (file_exists($xmlFilePath)) { $mapping = $this->mapper->read($xmlFilePath); $this->wrapper = isset($mapping['wrapper']) ? $mapping['wrapper'] : ''; $this->mapping = isset($mapping['fields']) ? $mapping['fields'] : []; $this->mappingMode = isset($mapping['strict']) ? (bool) $mapping['strict'] : false; $this->applyPlaceholders(); } }