protected function addRuleCssClassesIfNotAdded() { if (!$this->ruleClassesAdded && $this->form) { foreach ($this->form->getRuleNames($this->name) as $ruleName) { $this->getCssClasses()->append($ruleName); } $this->ruleClassesAdded = TRUE; } }
protected function addRuleCssClassesIfNotAdded() { if (!$this->ruleClassesAdded && $this->form) { foreach ($this->form->getRuleNames($this->name) as $ruleName) { $this->getCssClasses()->append($ruleName); } $this->ruleClassesAdded = TRUE; } }