public function Properties::getPluginDefinition in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 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\SalesforceMappingFieldCode
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;
}