public function FieldTargetBase::isTargetTranslatable in Feeds 8.3
Checks if the target is translatable.
Target is translatable when a language is set in configuration.
Return value
bool True if the target translatable. False otherwise.
Overrides TranslatableTargetInterface::isTargetTranslatable
2 calls to FieldTargetBase::isTargetTranslatable()
- FieldTargetBase::getEntityTarget in src/
Plugin/ Type/ Target/ FieldTargetBase.php - Get entity, or entity translation to set the map.
- FieldTargetBase::getSummary in src/
Plugin/ Type/ Target/ FieldTargetBase.php - Returns the summary for a target.
File
- src/
Plugin/ Type/ Target/ FieldTargetBase.php, line 393
Class
- FieldTargetBase
- Helper class for field mappers.
Namespace
Drupal\feeds\Plugin\Type\TargetCode
public function isTargetTranslatable() {
return $this
->isTargetFieldTranslatable() && !empty($this->configuration['language']);
}