Source of file ConsultationFormField.php
Size: 0,589 Bytes - Last Modified: 2021-12-24T06:44:46+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/ConsultationFormField.php
12345678910111213141516171819 | <?php /** * @package consultation */ class ConsultationFormField extends DataExtension { /** * Add an option to include in the comment */ public function updateFieldConfiguration(FieldList $fields) { if (in_array($this->owner->Parent()->Classname, ClassInfo::subclassesFor('Consultation'))) { $comment = CheckboxField::create($this->owner->getSettingName('CommentField'), _t('CONSULTATION.INCLUDEINCOMMENT', 'Include this field in comment post'), $this->owner->getSetting('CommentField')); $fields->push($comment); } } } |