private function getYamlValues(Bag $field)
    {
        $values = array_slice($field->get('values', []), 0, $field->get('limit', self::DEFAULT_LIMIT), true);
        if ($field->get('sortable')) {
            asort($values, SORT_REGULAR);
        }

        return $values;
    }