protected function SalesforceMappingFieldPluginBase::getDrupalFieldType in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::getDrupalFieldType()
- 5.0.x modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::getDrupalFieldType()
Helper method to get the Field Type of the given Field Data Definition.
Parameters
\Drupal\Core\TypedData\DataDefinitionInterface $data_definition: The Drupal Field Data Definition object.
Return value
string|null The Drupal Field Type or NULL.
1 call to SalesforceMappingFieldPluginBase::getDrupalFieldType()
- SalesforceMappingFieldPluginBase::pullValue in modules/
salesforce_mapping/ src/ SalesforceMappingFieldPluginBase.php - Pull callback for field plugins.
1 method overrides SalesforceMappingFieldPluginBase::getDrupalFieldType()
- PropertiesExtended::getDrupalFieldType in modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ PropertiesExtended.php - Helper method to get the Field Type of the given Field Data Definition.
File
- modules/
salesforce_mapping/ src/ SalesforceMappingFieldPluginBase.php, line 581
Class
- SalesforceMappingFieldPluginBase
- Defines a base Salesforce Mapping Field Plugin implementation.
Namespace
Drupal\salesforce_mappingCode
protected function getDrupalFieldType(DataDefinitionInterface $data_definition) {
$field_main_property = $data_definition
->getPropertyDefinition($data_definition
->getMainPropertyName());
return $field_main_property ? $field_main_property
->getDataType() : NULL;
}