function UrlAliasLanguage::transform
Same name in other branches
- 9 core/modules/path/src/Plugin/migrate/process/d6/UrlAliasLanguage.php \Drupal\path\Plugin\migrate\process\d6\UrlAliasLanguage::transform()
Overrides ProcessPluginBase::transform
File
-
core/
modules/ path/ src/ Plugin/ migrate/ process/ d6/ UrlAliasLanguage.php, line 22
Class
- UrlAliasLanguage
- Url alias language code process.
Namespace
Drupal\path\Plugin\migrate\process\d6Code
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
$langcode = $value === '' ? LanguageInterface::LANGCODE_NOT_SPECIFIED : $value;
return $langcode;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.