protected function getSelectedValueForMenu(Field $field)
    {
        $valueAccessor = $this->getFieldValueAccessor($field);

        if ($field->isMultipleAnswers()) {
            return $this->getMultipleSelectedValue($field->name, $valueAccessor, $field->htmlValue);
        }

        return $this->getSelectedValue($field->name, $valueAccessor, $field->htmlValue);
    }
protected function getSelectedValueForMenu(Field $field)
    {
        $valueAccessor = $this->getFieldValueAccessor($field);

        if ($field->isMultipleAnswers()) {
            return $this->getMultipleSelectedValue($field->name, $valueAccessor, $field->htmlValue);
        }

        return $this->getSelectedValue($field->name, $valueAccessor, $field->htmlValue);
    }
protected function getSelectedValueForMenu ( Field $ field ) { $ valueAccessor = $ this -> getFieldValueAccessor ( $ field ) ; if ( $ field -> isMultipleAnswers ( ) ) { return $ this -> getMultipleSelectedValue ( $ field -> name , $ valueAccessor , $ field -> htmlValue ) ; } return $ this -> getSelectedValue ( $ field -> name , $ valueAccessor , $ field -> htmlValue ) ; }
Gets the selected value for a menu.

@param CrestApps\CodeGenerator\Models\Field $field

@return string
Gets the selected value for a menu .