*
* @param string $contactSubType
*/
- public function setContactSubType(string $contactSubType) {
- $this->contactSubType = $contactSubType;
+ public function setContactSubType($contactSubType) {
+ $this->contactSubType = (string) $contactSubType;
}
/**
*/
protected function getNameFromLabel($label) {
$titleMap = array_flip($this->getMetadataTitles());
+ $label = str_replace(' (match to contact)', '', $label);
return $titleMap[$label] ?? '';
}
* @return bool
*/
protected function isValidRelationshipKey($key) {
- return !empty($this->getValidRelationships()[$key]) ? TRUE : FALSE;
+ return !empty($this->getValidRelationships()[$key]);
}
/**