src/OpenCart/Helpers/FormRenderer.php
protected function handleRequired(array $field)
    {
        if (!empty($field['attributes']['required'])) {
            if (empty($this->elementWrapperClass)) {
                $this->elementWrapperClass = '';
            } else {
                $this->elementWrapperClass .= ' ';
            }
            $this->elementWrapperClass .= 'required';
        }
    }
protected function handleRequired(array $field)
    {
        if (!empty($field['attributes']['required'])) {
            if (empty($this->elementWrapperClass)) {
                $this->elementWrapperClass = '';
            } else {
                $this->elementWrapperClass .= ' ';
            }
            $this->elementWrapperClass .= 'required';
        }
    }
protected function handleRequired ( array $ field ) { if ( ! empty ( $ field [ 'attributes' ] [ 'required' ] ) ) { if ( empty ( $ this -> elementWrapperClass ) ) { $ this -> elementWrapperClass = '' ; } else { $ this -> elementWrapperClass .= ' ' ; } $ this -> elementWrapperClass .= 'required' ; } }
Handles required fields.

@param array $field
Handles required fields .