You are here

public function MatchEngineBase::getConfigurationItem 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::getConfigurationItem()
  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::getConfigurationItem()

Returns a specific item of this plugin's configuration.

Parameters

string|array $key: The key of the item to get, or an array of nested keys.

Return value

mixed An item of this plugin's configuration.

Overrides MatchEngineInterface::getConfigurationItem

3 calls to MatchEngineBase::getConfigurationItem()
DefaultMatchingEngine::buildConfigurationForm in modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php
Form constructor.
DefaultMatchingEngine::getRules in modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php
Gets the rules that are matched.
DefaultMatchingEngine::match in modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php
Finds matches for given contact.

File

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

Class

MatchEngineBase
Default implementation of MatchEngineInterface.

Namespace

Drupal\crm_core_match\Plugin\crm_core_match\engine

Code

public function getConfigurationItem($key) {
  $configuration = $this
    ->getConfiguration();
  return NestedArray::getValue($configuration, (array) $key);
}