You are here

public function Properties::getPluginDefinition in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 5.0.x modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Properties.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Properties::getPluginDefinition()

Gets the definition of the plugin implementation.

Return value

array The plugin definition, as returned by the discovery object used by the plugin manager.

Overrides PluginBase::getPluginDefinition

File

modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Properties.php, line 86

Class

Properties
Adapter for entity properties and fields.

Namespace

Drupal\salesforce_mapping\Plugin\SalesforceMappingField

Code

public function getPluginDefinition() {
  $definition = parent::getPluginDefinition();
  if ($field = FieldConfig::loadByName($this->mapping
    ->getDrupalEntityType(), $this->mapping
    ->getDrupalBundle(), $this
    ->config('drupal_field_value'))) {
    $definition['config_dependencies']['config'][] = $field
      ->getConfigDependencyName();
  }
  return $definition;
}