You are here

TextFieldHandler.php in CRM Core 8.2

File

modules/crm_core_match/src/Plugin/crm_core_match/field/TextFieldHandler.php
View source
<?php

namespace Drupal\crm_core_match\Plugin\crm_core_match\field;


/**
 * Class for evaluating text fields.
 *
 * @CrmCoreMatchFieldHandler (
 *   id = "text"
 * )
 */
class TextFieldHandler extends FieldHandlerBase {

  /**
   * {@inheritdoc}
   */
  public function getOperators($property = 'value') {
    return array(
      '=' => t('Equals'),
      'STARTS_WITH' => t('Starts with'),
      'ENDS_WITH' => t('Ends with'),
      'CONTAINS' => t('Contains'),
    );
  }

}

Classes

Namesort descending Description
TextFieldHandler Class for evaluating text fields.