You are here

public function DefaultMatchingEngine::buildHeader in CRM Core 8.2

Same name and namespace in other branches
  1. 8.3 modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php \Drupal\crm_core_match\Plugin\crm_core_match\engine\DefaultMatchingEngine::buildHeader()
  2. 8 modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php \Drupal\crm_core_match\Plugin\crm_core_match\engine\DefaultMatchingEngine::buildHeader()

Builds the header row for the rule listing.

Return value

array A render array structure of header strings.

1 call to DefaultMatchingEngine::buildHeader()
DefaultMatchingEngine::buildConfigurationForm in modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php
Form constructor.

File

modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php, line 247

Class

DefaultMatchingEngine
DefaultMatchingEngine class.

Namespace

Drupal\crm_core_match\Plugin\crm_core_match\engine

Code

public function buildHeader() {
  $header = [];
  $header['status'] = $this
    ->t('Enabled');
  $header['label'] = $this
    ->t('Name');
  $header['field_type'] = $this
    ->t('Field type');
  $header['operator'] = $this
    ->t('Operator');
  $header['options'] = $this
    ->t('Options');
  $header['score'] = $this
    ->t('Score');
  $header['weight'] = $this
    ->t('Weight');
  return $header;
}