You are here

public function Matcher::getPlugin in CRM Core 8.2

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

Gets the matcher plugin.

Return value

\Drupal\crm_core_match\Plugin\crm_core_match\engine\MatchEngineInterface. Instantiated plugin.

Overrides MatcherConfigInterface::getPlugin

File

modules/crm_core_match/src/Entity/Matcher.php, line 114
Contains \Drupal\crm_core_match\Entity\Matcher.

Class

Matcher
CRM Matcher Entity Class.

Namespace

Drupal\crm_core_match\Entity

Code

public function getPlugin() {
  if (empty($this->plugin)) {
    $this->plugin = crm_core_match_matcher_manager()
      ->createInstance($this->plugin_id, $this->configuration);
  }
  return $this->plugin;
}