You are here

public function Matcher::match in CRM Core 8.3

Same name and namespace in other branches
  1. 8 modules/crm_core_match/src/Entity/Matcher.php \Drupal\crm_core_match\Entity\Matcher::match()
  2. 8.2 modules/crm_core_match/src/Entity/Matcher.php \Drupal\crm_core_match\Entity\Matcher::match()

Finds matches for given contact.

Parameters

\Drupal\crm_core_contact\ContactInterface $contact: A contact entity used to pass data for identifying a match.

Return value

int[] An array of entity ids for potential matches.

Overrides MatcherConfigInterface::match

File

modules/crm_core_match/src/Entity/Matcher.php, line 127

Class

Matcher
CRM Matcher Entity Class.

Namespace

Drupal\crm_core_match\Entity

Code

public function match(ContactInterface $contact) {
  return $this
    ->getPlugin()
    ->match($contact);
}