*/
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]);
}
/**