public function getAges() {
    $ages = [];

    $ages_config = $this->config->get('ages');
    foreach (explode("\n", $ages_config) as $row) {
      $row = trim($row);
      list($months, $label) = explode(',', $row);
      $ages[] = [
        'label' => $label,
        'value' => $months,
      ];
    }

    return $ages;
  }
public function getAges() {
    $ages = [];

    $ages_config = $this->config->get('ages');
    foreach (explode("\n", $ages_config) as $row) {
      $row = trim($row);
      list($months, $label) = explode(',', $row);
      $ages[] = [
        'label' => $label,
        'value' => $months,
      ];
    }

    return $ages;
  }
public function getAges ( ) { $ ages = [ ] ; $ ages_config = $ this -> config -> get ( 'ages' ) ; foreach ( explode ( "\n" , $ ages_config ) as $ row ) { $ row = trim ( $ row ) ; list ( $ months , $ label ) = explode ( ',' , $ row ) ; $ ages [ ] = [ 'label' => $ label , 'value' => $ months , ] ; } return $ ages ; }
Get ages from configuration.
Get ages from configuration .