src/Charcoal/Admin/Property/AbstractSelectableInput.php
public function mapObjToChoice($obj)
    {
        $map = $this->choiceObjMap();

        $choice = [];

        foreach ($map as $key => $props) {
            $choice[$key] = null;

            $props = explode(':', $props);
            foreach ($props as $prop) {
                $choice[$key] = $this->renderChoiceObjMap($obj, $prop);
                break;
            }
        }

        return $choice;
    }
public function mapObjToChoice($obj)
    {
        $map = $this->choiceObjMap();

        $choice = [];

        foreach ($map as $key => $props) {
            $choice[$key] = null;

            $props = explode(':', $props);
            foreach ($props as $prop) {
                $choice[$key] = $this->renderChoiceObjMap($obj, $prop);
                break;
            }
        }

        return $choice;
    }
public function mapObjToChoice ( $ obj ) { $ map = $ this -> choiceObjMap ( ) ; $ choice = [ ] ; foreach ( $ map as $ key => $ props ) { $ choice [ $ key ] = null ; $ props = explode ( ':' , $ props ) ; foreach ( $ props as $ prop ) { $ choice [ $ key ] = $ this -> renderChoiceObjMap ( $ obj , $ prop ) ; break ; } } return $ choice ; }
Convert the given object into a choice structure.

@param  array|\ArrayAccess|ModelInterface $obj The object to map to a choice.
@return array
Convert the given object into a choice structure .