Skip to content

Commit

Permalink
Revert "New event so more validation classes can be added on the fly (#…
Browse files Browse the repository at this point in the history
…1490)" (#2910)

This reverts commit a22d834.
  • Loading branch information
fballiano committed Jan 9, 2023
1 parent a22d834 commit ccbe6b8
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,18 @@ public function isVisible()
*/
public function getClass()
{
$out = new ArrayObject();
$out = [];
$out[] = $this->getAttribute()->getFrontendClass();
if ($this->getAttribute()->getIsRequired()) {
$out->append('required-entry');
$out[] = 'required-entry';
}

$inputRuleClass = $this->_getInputValidateClass();
if ($inputRuleClass) {
$out->append($inputRuleClass);
$out[] = $inputRuleClass;
}

Mage::dispatchEvent('eav_entity_attribute_frontend_get_class', ['classes' => $out, 'attribute' => $this->getAttribute()]);

if (!empty($out)) {
$out = implode(' ', (array) $out);
$out = implode(' ', $out);
} else {
$out = '';
}
Expand Down

0 comments on commit ccbe6b8

Please sign in to comment.