/** * @param ElementInterface $elementInstance * * @return bool */ public function isValid(ElementInterface $elementInstance) { $value = $elementInstance->getValue(); $matchElementValue = $this->_getMatchElement()->getValue(); if ($value !== $matchElementValue || $elementInstance->isValid() === FALSE) { return FALSE; } return TRUE; }