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;
    }
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;
    }
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 ; }
Return a YAML defined array of select field value options.

@param Bag $field

@return array
Return a YAML defined array of select field value options .