public function FieldTargetBase::languageExists in Feeds 8.3
Checks if the language selected on the target exists.
Return value
bool True, if the target configured language exists. False otherwise.
Overrides TranslatableTargetInterface::languageExists
1 call to FieldTargetBase::languageExists()
- FieldTargetBase::getEntityTarget in src/
Plugin/ Type/ Target/ FieldTargetBase.php - Get entity, or entity translation to set the map.
File
- src/
Plugin/ Type/ Target/ FieldTargetBase.php, line 386
Class
- FieldTargetBase
- Helper class for field mappers.
Namespace
Drupal\feeds\Plugin\Type\TargetCode
public function languageExists() {
return $this
->getLanguageManager()
->getLanguage($this->configuration['language']) instanceof LanguageInterface;
}