/** @inheritdoc */ public function renderControl(IControl $control, array $attrs = [], $part = NULL, $renderedDescription = FALSE) { /** @var Html $el */ $el = parent::renderControl($control, $attrs, $part, $renderedDescription); if ($el->getName() !== '' && !isset($attrs['no-form-control'])) { $el->appendAttribute('class', static::FORM_CONTROL_CLASS); } return $el; }