public function getChoices($opts = [])
    {
        $include_blank_dash = (array_key_exists('include_blank', $opts)) ?
            false == $opts['include_blank'] : true;

        $first_choice = [];
        if ($include_blank_dash) {
            $first_choice = self::BLANK_CHOICE_DASH;
        }

        if (!empty($this->choices)) {
            return array_merge($first_choice, $this->choices);
        }

        // load from relationships todo
    }
public function getChoices($opts = [])
    {
        $include_blank_dash = (array_key_exists('include_blank', $opts)) ?
            false == $opts['include_blank'] : true;

        $first_choice = [];
        if ($include_blank_dash) {
            $first_choice = self::BLANK_CHOICE_DASH;
        }

        if (!empty($this->choices)) {
            return array_merge($first_choice, $this->choices);
        }

        // load from relationships todo
    }
public function getChoices ( $ opts = [ ] ) { $ include_blank_dash = ( array_key_exists ( 'include_blank' , $ opts ) ) ? false == $ opts [ 'include_blank' ] : true ; $ first_choice = [ ] ; if ( $ include_blank_dash ) { $ first_choice = self :: BLANK_CHOICE_DASH ; } if ( ! empty ( $ this -> choices ) ) { return array_merge ( $ first_choice , $ this -> choices ) ; } // load from relationships todo }
Returns choices with a default blank choices included, for use as
SelectField choices for this field.

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Returns choices with a default blank choices included for use as SelectField choices for this field .