Carbon_Fields\Field\Set_Field::get_value PHP Method

get_value() public method

Retrieve the field value(s).
public get_value ( ) : array
return array
    public function get_value()
    {
        if ($this->value === false) {
            return array();
        }
        $this->load_options();
        if (!is_array($this->value)) {
            $this->value = maybe_unserialize($this->value);
            if (!is_array($this->value)) {
                if (is_null($this->value)) {
                    return array();
                }
                return array($this->value);
            }
        }
        return (array) $this->value;
    }