Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Array.php
Go to the documentation of this file.
1 <?php
25 #require_once 'Zend/Config/Writer/FileAbstract.php';
26 
33 class Zend_Config_Writer_Array extends Zend_Config_Writer_FileAbstract
34 {
41  public function render()
42  {
43  $data = $this->_config->toArray();
44  $sectionName = $this->_config->getSectionName();
45 
46  if (is_string($sectionName)) {
47  $data = array($sectionName => $data);
48  }
49 
50  $arrayString = "<?php\n"
51  . "return " . var_export($data, true) . ";\n";
52 
53  return $arrayString;
54  }
55 }