/** * {@inheritDoc} */ public function get($elementOrFieldset) { if (!parent::has($elementOrFieldset) && $elementOrFieldset === 'identity' && $this->identityElement) { $elementOrFieldset = $this->identityElement->getName(); } return parent::get($elementOrFieldset); }
/** * {@inheritDoc} */ public function get($elementOrFieldset) { if (!parent::has($elementOrFieldset)) { if ($elementOrFieldset === 'identity' && $this->identityElement) { $elementOrFieldset = $this->identityElement->getName(); } elseif ($elementOrFieldset === 'csrf' && $this->credentialElement) { $elementOrFieldset = $this->credentialElement->getName(); } } return parent::get($elementOrFieldset); }