public function map(\Prototype\ContactInformation $contact) { $value = $this->simpleValue($this->vocabulary->attributes->email); if (!empty($value)) { $contact->setEmail(str_replace('mailto:', '', $value)); } }
public function map(\Prototype\ContactInformation $contact) { $value = $this->simpleValue($this->vocabulary->attributes->email); if (!empty($value)) { $contact->setEmail(str_replace('mailto:', '', $value)); } }