You are here

public function SalesforceMappingFieldPluginBase::config in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::config()
  2. 5.0.x modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::config()

In order to set a config value to null, use setConfiguration()

Return value

array|string The config value.

Overrides SalesforceMappingFieldPluginInterface::config

38 calls to SalesforceMappingFieldPluginBase::config()
Constant::buildConfigurationForm in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Constant.php
Form constructor.
Constant::value in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Constant.php
Given a Drupal entity, return the outbound value.
DrupalConstant::buildConfigurationForm in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/DrupalConstant.php
Form constructor.
DrupalConstant::pullValue in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/DrupalConstant.php
Pull callback for field plugins.
Properties::buildConfigurationForm in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Properties.php
Implementation of PluginFormInterface::buildConfigurationForm.

... See full list

File

modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php, line 348

Class

SalesforceMappingFieldPluginBase
Defines a base Salesforce Mapping Field Plugin implementation.

Namespace

Drupal\salesforce_mapping

Code

public function config($key = NULL, $value = NULL) {
  if ($key === NULL) {
    return $this->configuration;
  }
  if ($value !== NULL) {
    $this->configuration[$key] = $value;
  }
  if (array_key_exists($key, $this->configuration)) {
    return $this->configuration[$key];
  }
  return NULL;
}