Generates an group template element
protected _groupTemplate ( array $options ) : string | ||
$options | array | The options for group template |
return | string | The generated group template |
/** * Generates an group template element * * @param array $options The options for group template * @return string The generated group template */ protected function _groupTemplate($options) { if (isset($options['options']['formGroup']) && $options['options']['formGroup'] === false) { $groupTemplate = 'plainFormGroup'; return $this->templater()->format('plainFormGroup', ['input' => $options['input'], 'label' => $options['label'], 'error' => $options['error']]); } return parent::_groupTemplate($options); }