protected function SalesforceMappingFieldPluginBase::getFieldDataDefinition in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::getFieldDataDefinition()
- 5.0.x modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::getFieldDataDefinition()
Helper method to get the Data Definition for the current field.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The Entity to get the field from.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface The Data Definition of the current field.
2 calls to SalesforceMappingFieldPluginBase::getFieldDataDefinition()
- PropertiesBase::getFieldDataDefinition in modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ PropertiesBase.php - Helper method to get the Data Definition for the current field.
- SalesforceMappingFieldPluginBase::pullValue in modules/
salesforce_mapping/ src/ SalesforceMappingFieldPluginBase.php - Pull callback for field plugins.
1 method overrides SalesforceMappingFieldPluginBase::getFieldDataDefinition()
- PropertiesBase::getFieldDataDefinition in modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ PropertiesBase.php - Helper method to get the Data Definition for the current field.
File
- modules/
salesforce_mapping/ src/ SalesforceMappingFieldPluginBase.php, line 579
Class
- SalesforceMappingFieldPluginBase
- Defines a base Salesforce Mapping Field Plugin implementation.
Namespace
Drupal\salesforce_mappingCode
protected function getFieldDataDefinition(EntityInterface $entity) {
return $entity
->get($this
->config('drupal_field_value'))
->getFieldDefinition()
->getItemDefinition();
}