Gets a selectmonth element for a given field.

@param CrestApps\CodeGeneraotor\Support\Field $field

@return string
554877
public function getSelectMonthHtmlField(Field $field)
    {
        $stub = $this->getStubContent('form-month-field.blade', $this->template);

        $this->replaceFieldName($stub, $field->name)
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceSelectedValue($stub, $this->getSelectedValue($field->name, '$value', $field->htmlValue))
            ->replaceFieldPlaceHolder($stub, $this->getFieldPlaceHolderForMenu($field->getPlaceholder(), $field->name))
            ->wrapField($stub, $field);

        return $stub;
    }
562226
protected function getField($field)
    {
        if ($this->isFieldSupported($field) && isset($this->fields[ $field ])) {
            return $this->fields[ $field ];
        }

        return null;
    }
52350
public function select(FieldContract $field)
    {
        $attributes  = $this->html->decorate($field->get('attributes'));
        $optionsData = $field->get('optionsData') ?: [];
        if (array_get($attributes, 'data-selectar') === false or ! is_null(array_get($attributes, 'data-selectar--search'))) {
            unset($attributes['data-selectar']);
        }
        return $this->form->select(
                        $field->get('name'), $field->get('options'), $field->get('value'), $attributes, $optionsData
        );
    }
1022667
public function getField($field)
    {
        return isset($this->data[$field]) ? $this->data[$field] : null;
    }
905944
public static function getDeleted(Field $field)
    {
        $change = new FieldMigrationChange();

        $change->isDeleted = true;
        $change->field = $field;

        return $change;
    }
658236
function getSelection (field) {
  if (typeof field !== 'object') {
    throw new TypeError('The field must be an object.')
  }

  return {
    start: field.selectionStart,
    end: field.selectionEnd
  }
}
819093
protected function getFieldItem(Field $field)
    {
        if ($field->hasForeignRelation()) {
            $relation = $field->getForeignRelation();

            return sprintf('$%s', $relation->getSingleName());
        }

        return '$text';
    }
553374
public function selectMonth($name, $selected = null, $options = [], $format = '')
    {
        $this->addErrorClass($name, $options);
        $tags['input'] = parent::selectMonth($name, $selected, $options);
        $tags['error'] = $this->getErrorTag($name);
        return $this->buildTags($tags);
    }
1193443
public String describeMonth(final Map<CronFieldName, CronField> fields) {
        final String description = DescriptionStrategyFactory.monthsInstance(
                resourceBundle,
                fields.containsKey(CronFieldName.MONTH) ? fields.get(CronFieldName.MONTH).getExpression() : null
        ).describe();

        return addTimeExpressions(description, resourceBundle.getString("month"), resourceBundle.getString("months"));
    }
1143073
public function getFieldValue($field, $data = null)
    {
        if ($data !== null && isset($data[$field])) {
            return $data[$field];
        }
        if (isset($this->{$field})) {
            return $this->{$field};
        }
        return null;
    }
1235943
public function datepickerInput(string $field, array $options = []): string
    {
        $options = Hash::merge([
            'type' => 'date',
        ], $options);

        return $this->Form->input($field, $options);
    }
1332253
public function getField($field, $token = null)
    {
        $session = $this->app->tokens->get($token);
        return ($session && isset($session[$field]))? $session[$field] : null;
    }
288131
public static function localized_field($field, $locale = null)
    {
        if ($locale === null) {
            $locale = Translatable::get_current_locale();
        }
        if ($locale == Translatable::default_locale()) {
            return $field;
        }
        return $field . TRANSLATABLE_COLUMN_SEPARATOR . $locale;
    }
533942
public function getSelectRangeHtmlField(Field $field)
    {
        $stub = $this->getStubContent('form-selectrange-field.blade', $this->template);

        $this->replaceFieldName($stub, $field->name)
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceFieldMinValue($stub, isset($field->range[0]) ? $field->range[0] : 1)
            ->replaceFieldMaxValue($stub, isset($field->range[1]) ? $field->range[1] : 10)
            ->replaceSelectedValue($stub, $this->getSelectedValueForMenu($field))
            ->replaceFieldPlaceHolder($stub, $this->getFieldPlaceHolderForMenu($field->getPlaceholder(), $field->name))
            ->wrapField($stub, $field);

        return $stub;
    }
579696
public function getInvalidField($field)
    {
        $value = isset($this->_invalid[$field]) ? $this->_invalid[$field] : null;

        return $value;
    }
1155265
protected function getFieldValue($field)
    {
        if (is_string($field)) {
            if (!isset($this->allFields[$field])) {
                throw new ApplicationException(Lang::get(
                    'backend::lang.form.missing_definition',
                    compact('field')
                ));
            }

            $field = $this->allFields[$field];
        }

        $defaultValue = !$this->model->exists
            ? $field->getDefaultFromData($this->data)
            : null;

        return $field->getValueFromData(
            $this->data, 
            is_string($defaultValue) ? trans($defaultValue) : $defaultValue
        );
    }
1229955
public function generateFieldID($field)
    {
        if ($form = $field->getForm()) {
            return sprintf(
                "%s_%s",
                $this->generateFormID($form),
                Convert::raw2htmlid($field->getName())
            );
        }

        return Convert::raw2htmlid($field->getName());
    }