private function Properties::getConfigurationOptions in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Properties.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Properties::getConfigurationOptions()
- 5.0.x modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Properties.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Properties::getConfigurationOptions()
Form options helper.
1 call to Properties::getConfigurationOptions()
- Properties::buildConfigurationForm in modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ Properties.php - Implementation of PluginFormInterface::buildConfigurationForm.
File
- modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ Properties.php, line 88
Class
- Properties
- Adapter for entity properties and fields.
Namespace
Drupal\salesforce_mapping\Plugin\SalesforceMappingFieldCode
private function getConfigurationOptions(SalesforceMappingInterface $mapping) {
$instances = $this->entityFieldManager
->getFieldDefinitions($mapping
->get('drupal_entity_type'), $mapping
->get('drupal_bundle'));
$options = [];
foreach ($instances as $key => $instance) {
// Entity reference fields are handled elsewhere.
if ($this
->instanceOfEntityReference($instance)) {
continue;
}
$options[$key] = $instance
->getLabel();
}
asort($options);
return $options;
}