/** * @param Checkbox $checkbox */ protected function buildCheckboxPrototype(Checkbox $checkbox) { $checkbox->setCssBaseTypeClass('ctrl')->setTranslationKey('control.{name}')->setComponentBaseType('control'); }
/** * @param Checkbox $input * @return string */ protected function renderCheckbox(Checkbox $input) { return sprintf(self::FORMAT_CHECKBOX, $input->getInputType(), $input->getFullId(), $input->getCssClass(), $input->getFullName(), $input->isChecked() ? 'checked="checked"' : '', $input->getHtmlAttributesAsString()); }