public function getFormField()
    {
        $defaultValue = $this->DefaultToToday
            ? DBDatetime::now()->Format('yyyy-MM-dd')
            : $this->Default;

        $field = FormField::create($this->Name, $this->Title ?: false, $defaultValue)
            ->setFieldHolderTemplate(EditableFormField::class . '_holder')
            ->setTemplate(EditableFormField::class);

        $this->doUpdateFormField($field);

        return $field;
    }
public function getFormField()
    {
        $defaultValue = $this->DefaultToToday
            ? DBDatetime::now()->Format('yyyy-MM-dd')
            : $this->Default;

        $field = FormField::create($this->Name, $this->Title ?: false, $defaultValue)
            ->setFieldHolderTemplate(EditableFormField::class . '_holder')
            ->setTemplate(EditableFormField::class);

        $this->doUpdateFormField($field);

        return $field;
    }
public function getFormField ( ) { $ defaultValue = $ this -> DefaultToToday ? DBDatetime :: now ( ) -> Format ( 'yyyy-MM-dd' ) : $ this -> Default ; $ field = FormField :: create ( $ this -> Name , $ this -> Title ? : false , $ defaultValue ) -> setFieldHolderTemplate ( EditableFormField :: class . '_holder' ) -> setTemplate ( EditableFormField :: class ) ; $ this -> doUpdateFormField ( $ field ) ; return $ field ; }
Return the form field
Return the form field