get_child_property() public method

Get child property.
public get_child_property ( string $slug, array $items = [] ) : Papi_Core_Property | null
$slug string
$items array
return Papi_Core_Property | null
 /**
  * Load child properties.
  *
  * @param  array              $results
  * @param  Papi_Core_Property $property
  *
  * @return array
  */
 protected function load_child_properties(array $results, $property = null)
 {
     foreach ($results as $index => $row) {
         foreach ($row as $slug => $value) {
             if (is_array($value) && isset($value[$slug])) {
                 $child_property = $this->get_store()->get_property($this->get_slug(true), $slug);
                 if (papi_is_property($child_property) && !empty($child_property->get_child_properties())) {
                     $value = papi_from_property_array_slugs($value, unpapify($slug));
                     $results[$index][$slug] = $this->load_child_properties($value, $child_property);
                 }
             }
             $type_key = papi_get_property_type_key_f($slug);
             if ($property->match_slug($slug)) {
                 $results[$index][$type_key] = $property;
             } else {
                 $results[$index][$type_key] = $property->get_child_property($slug);
             }
         }
     }
     return $results;
 }