You are here

public function MatchEngineBase::getRules in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_match/src/Plugin/crm_core_match/engine/MatchEngineBase.php \Drupal\crm_core_match\Plugin\crm_core_match\engine\MatchEngineBase::getRules()
  2. 8.2 modules/crm_core_match/src/Plugin/crm_core_match/engine/MatchEngineBase.php \Drupal\crm_core_match\Plugin\crm_core_match\engine\MatchEngineBase::getRules()

Gets the rules that are matched.

By default those are the contact type fields.

@todo Extend with typed data definition to limit selections.

Example data:


(
  field_name => array(
    label,
    definition,
),

Return value

mixed Matched rules.

Overrides MatchEngineInterface::getRules

1 method overrides MatchEngineBase::getRules()
DefaultMatchingEngine::getRules in modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php
Gets the rules that are matched.

File

modules/crm_core_match/src/Plugin/crm_core_match/engine/MatchEngineBase.php, line 105

Class

MatchEngineBase
Default implementation of MatchEngineInterface.

Namespace

Drupal\crm_core_match\Plugin\crm_core_match\engine

Code

public function getRules() {
  return [];
}