Core/src/GrpcTrait.php
private function formatListForApi(array $list)
    {
        $values = [];

        foreach ($list as $value) {
            $values[] = $this->formatValueForApi($value);
        }

        return ['values' => $values];
    }
private function formatListForApi(array $list)
    {
        $values = [];

        foreach ($list as $value) {
            $values[] = $this->formatValueForApi($value);
        }

        return ['values' => $values];
    }
private function formatListForApi ( array $ list ) { $ values = [ ] ; foreach ( $ list as $ value ) { $ values [ ] = $ this -> formatValueForApi ( $ value ) ; } return [ 'values' => $ values ] ; }
Format a list for the API.

@param array $list
@return array
Format a list for the API .