Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ObjectToArrayConverter.php
Go to the documentation of this file.
1 <?php
7 
9 
17 {
25  public function convert($response)
26  {
27  $response = (array) $response;
28  foreach ($response as $key => $value) {
29  if (is_object($value)) {
30  $response[$key] = $this->convert($value);
31  }
32  }
33 
34  return $response;
35  }
36 }
$response
Definition: 404.php:11
$value
Definition: gender.phtml:16