You are here

final class MappingConstants in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/MappingConstants.php \Drupal\salesforce_mapping\MappingConstants
  2. 5.0.x modules/salesforce_mapping/src/MappingConstants.php \Drupal\salesforce_mapping\MappingConstants

Defines events for Salesforce.

Hierarchy

Expanded class hierarchy of MappingConstants

See also

\Drupal\salesforce\Event\SalesforceEvent

18 files declare their use of MappingConstants
Constant.php in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Constant.php
DeleteHandler.php in modules/salesforce_pull/src/DeleteHandler.php
DeleteHandlerTest.php in modules/salesforce_pull/tests/src/Unit/DeleteHandlerTest.php
DrupalConstant.php in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/DrupalConstant.php
Hardcoded.php in modules/salesforce_example/src/Plugin/SalesforceMappingField/Hardcoded.php

... See full list

File

modules/salesforce_mapping/src/MappingConstants.php, line 10

Namespace

Drupal\salesforce_mapping
View source
final class MappingConstants {

  /**
   * Define when a data sync should take place for a given mapping.
   */
  const SALESFORCE_MAPPING_SYNC_DRUPAL_CREATE = 'push_create';
  const SALESFORCE_MAPPING_SYNC_DRUPAL_UPDATE = 'push_update';
  const SALESFORCE_MAPPING_SYNC_DRUPAL_DELETE = 'push_delete';
  const SALESFORCE_MAPPING_SYNC_SF_CREATE = 'pull_create';
  const SALESFORCE_MAPPING_SYNC_SF_UPDATE = 'pull_update';
  const SALESFORCE_MAPPING_SYNC_SF_DELETE = 'pull_delete';
  const SALESFORCE_MAPPING_TRIGGER_MAX_LENGTH = 16;

  /**
   * Field mapping direction constants.
   */
  const SALESFORCE_MAPPING_DIRECTION_DRUPAL_SF = 'drupal_sf';
  const SALESFORCE_MAPPING_DIRECTION_SF_DRUPAL = 'sf_drupal';
  const SALESFORCE_MAPPING_DIRECTION_SYNC = 'sync';

  /**
   * Delimiter used in Salesforce multipicklists.
   */
  const SALESFORCE_MAPPING_ARRAY_DELIMITER = ';';

  /**
   * Field mapping maximum name length.
   */
  const SALESFORCE_MAPPING_NAME_LENGTH = 128;
  const SALESFORCE_MAPPING_STATUS_SUCCESS = 1;
  const SALESFORCE_MAPPING_STATUS_ERROR = 0;

}

Members