You are here

public function FieldHandlerInterface::match in CRM Core 8.2

Same name and namespace in other branches
  1. 8.3 modules/crm_core_match/src/Plugin/crm_core_match/field/FieldHandlerInterface.php \Drupal\crm_core_match\Plugin\crm_core_match\field\FieldHandlerInterface::match()
  2. 8 modules/crm_core_match/src/Plugin/crm_core_match/field/FieldHandlerInterface.php \Drupal\crm_core_match\Plugin\crm_core_match\field\FieldHandlerInterface::match()

Executes the match query.

Parameters

\Drupal\crm_core_contact\ContactInterface $contact: The contact entity to find matches for.

string $property: The name of the property.

Return value

array An array containing the found matches. The first level keys are the contact ids found as matches. The second level key is the rule id responsible for the match containing its score as value. @code array( $contact_id => array( $rule_id => $core, ), ); @end

1 method overrides FieldHandlerInterface::match()
FieldHandlerBase::match in modules/crm_core_match/src/Plugin/crm_core_match/field/FieldHandlerBase.php
Executes the match query.

File

modules/crm_core_match/src/Plugin/crm_core_match/field/FieldHandlerInterface.php, line 145

Class

FieldHandlerInterface
Interface for defining the logical operators and query criteria used to identify duplicate contacts based on different field types in DefaultMatchingEngine.

Namespace

Drupal\crm_core_match\Plugin\crm_core_match\field

Code

public function match(ContactInterface $contact, $property = 'value');