You are here

protected function SalesforceMappingFieldPluginBase::getFieldDataDefinition in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::getFieldDataDefinition()
  2. 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.

1 call to SalesforceMappingFieldPluginBase::getFieldDataDefinition()
SalesforceMappingFieldPluginBase::pullValue in modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php
Pull callback for field plugins.
1 method overrides SalesforceMappingFieldPluginBase::getFieldDataDefinition()
PropertiesExtended::getFieldDataDefinition in modules/salesforce_mapping/src/Plugin/SalesforceMappingField/PropertiesExtended.php
Helper method to get the Data Definition for the current field.

File

modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php, line 566

Class

SalesforceMappingFieldPluginBase
Defines a base Salesforce Mapping Field Plugin implementation.

Namespace

Drupal\salesforce_mapping

Code

protected function getFieldDataDefinition(EntityInterface $entity) {
  return $entity
    ->get($this
    ->config('drupal_field_value'))
    ->getFieldDefinition()
    ->getItemDefinition();
}