protected function ContentEntitySource::getFieldProcessor in Translation Management Tool 8
Returns the field processor for a given field type.
Parameters
string $field_type: The field type.
Return value
\Drupal\tmgmt_content\FieldProcessorInterface $field_processor The field processor for this field type.
1 call to ContentEntitySource::getFieldProcessor()
- ContentEntitySource::doSaveTranslations in sources/
content/ src/ Plugin/ tmgmt/ Source/ ContentEntitySource.php - Saves translation data in an entity translation.
File
- sources/
content/ src/ Plugin/ tmgmt/ Source/ ContentEntitySource.php, line 753
Class
- ContentEntitySource
- Content entity source plugin controller.
Namespace
Drupal\tmgmt_content\Plugin\tmgmt\SourceCode
protected function getFieldProcessor($field_type) {
$definition = \Drupal::service('plugin.manager.field.field_type')
->getDefinition($field_type);
return \Drupal::service('class_resolver')
->getInstanceFromDefinition($definition['tmgmt_field_processor']);
}